We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21ed735 commit 7cda77fCopy full SHA for 7cda77f
test/tests/parser.js
@@ -27,6 +27,22 @@ export function parserTests() {
27
];
28
assert.deepStrictEqual(lexerTest(input), expected);
29
});
30
+ it('should lex single char input', function() {
31
+ const input = `A`;
32
+ const expected = [
33
+ `<Line L1:1> v:'A' t:'A'`,
34
+ `<EOF L1:1> v:'' t:''`,
35
+ ];
36
+ assert.deepStrictEqual(lexerTest(input), expected);
37
+ });
38
+ it('should lex single newline input', function() {
39
+ const input = `\n`;
40
41
+ `<EOL L1:1> v:'<EOL>' t:'<EOL>'`,
42
+ `<EOF L2:0> v:'' t:''`,
43
44
45
46
it('should lex input without terminating newline', function() {
47
const input = `A`;
48
const expected = [
0 commit comments