Skip to content

Commit

Permalink
fix: tests for operators in annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
4silvertooth committed Mar 20, 2024
1 parent ee24393 commit 75159cb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 178 deletions.
2 changes: 1 addition & 1 deletion sdk
Submodule sdk updated from 8b1449 to be8d4b
4 changes: 4 additions & 0 deletions tests/sciter-tape-grammar.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ testGroup(`${locale[TEST_LOCALE]} Format`, ()=> {
expect(parse(`${INT} = test\n+ ${INT}\n═══\n ${SUM.toLocaleString()} = test`).parser.errors).equal([]);
expect(parse(`${INT} = test\n+ ${INT}\n═══\n ${SUM.toLocaleString()} = test`).lex.tokens[9].image).equal(`=`);
expect(parse(`${INT} = test\n+ ${INT}\n═══\n ${SUM.toLocaleString()} = test`).lex.tokens[10].image).equal(`test`);
expect(parse(`${INT} test\n+ ${INT}\n═══\n ${SUM.toLocaleString()} = test`).lex.tokens[10].tokenType.name).equal("SuffixIdentifier");
expect(parse(`${INT} test\n+ ${INT}\n═══\n ${SUM.toLocaleString()} = test annotation`).lex.tokens[11].tokenType.name).equal("Annotation");
expect(parse(`${INT} test 01/01/2080\n+ ${INT}\n═══\n ${SUM.toLocaleString()} = test annotation`).lex.tokens[1].image).equal("test 01/01/2080");
expect(parse(`${INT} test 01/01/2080\n+ ${INT}\n═══\n ${SUM.toLocaleString()} = test annotation`).lex.tokens[1].tokenType.name).equal("Annotation");
});

test('invalid expression requiring newline', () => {
Expand Down
177 changes: 0 additions & 177 deletions tests/tape-grammar.test.js

This file was deleted.

0 comments on commit 75159cb

Please sign in to comment.