diff options
Diffstat (limited to 'tests/paca.mjs')
| -rw-r--r-- | tests/paca.mjs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/paca.mjs b/tests/paca.mjs index e9c3a6b..2c44f9e 100644 --- a/tests/paca.mjs +++ b/tests/paca.mjs @@ -511,6 +511,10 @@ const test_shouldConcat = t => { t.assertEq(shouldConcat("a", "|"), false); t.assertEq(shouldConcat("a", ")"), false); }); + + t.testing("only consider the `next` char", () => { + t.assertEq(shouldConcat(null, "\\"), true); + }); }; const test_isOperator = t => { |
