Skip to content

Commit 8b35238

Browse files
committed
fix v2 tests
1 parent 1454fb5 commit 8b35238

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

v2/jsonc_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func TestUnmarshalWithComments(t *testing.T) {
6969
}
7070
}
7171

72-
func TestDecommenter(t *testing.T) {
72+
func TestStripComments(t *testing.T) {
7373
tests := []struct {
7474
name string
7575
input string
@@ -218,7 +218,7 @@ World"}
218218

219219
for _, tt := range tests {
220220
t.Run(tt.name, func(t *testing.T) {
221-
got := decomment([]byte(tt.input))
221+
got := stripComments([]byte(tt.input))
222222
if string(got) != tt.expected {
223223
t.Errorf("\ntest: \"%s\"\ngot \"%s\"\nwant \"%s\"", tt.input, string(got), tt.expected)
224224
} else {

0 commit comments

Comments
 (0)