diff options
Diffstat (limited to '__tests__/lexer.test.js')
-rw-r--r-- | __tests__/lexer.test.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/__tests__/lexer.test.js b/__tests__/lexer.test.js index 0336f44..25ef816 100644 --- a/__tests__/lexer.test.js +++ b/__tests__/lexer.test.js @@ -203,6 +203,16 @@ describe('lex', () => { { type: 'constant', value: 6 } ]) }) + + test('6a3d6', () => { + expect(lex('6a3d6')).toEqual([ + { type: 'constant', value: 6 }, + { type: 'a' }, + { type: 'constant', value: 3 }, + { type: 'd' }, + { type: 'constant', value: 6 } + ]) + }) }) describe('threshold', () => { |