Skip to content

Commit 2209274

Browse files
committed
test: literal line feed
1 parent c911ab4 commit 2209274

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/CommentTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ public function theTests()
128128
'json' => '{"a": "ab", /* also comment */ "b":"a/* not a comment */b" /* "comment string" */ }',
129129
'expect' => '{"a": "ab", "b":"a/* not a comment */b" }',
130130
],
131+
'literal lf' => [
132+
'json' => '{"a":/*literal linefeed*/"apple' . "\n" . 'ball","b":"","c\\\\":"",}',
133+
'expect' => '{"a":"apple\nball","b":"","c\\\\":""}',
134+
],
131135
];
132136
}
133137
}

0 commit comments

Comments
 (0)