diff options
author | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2017-08-30 16:36:40 -0400 |
---|---|---|
committer | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2017-08-30 16:36:40 -0400 |
commit | a7b971ef64f09a21902f34b6078b01d78dcf73e7 (patch) | |
tree | f3ed0e97fe3f31e8c7ca58e18a5835290e66c755 /__tests__/lexer.test.js | |
parent | 5b77a409c912f7251da8c170bd4a3aa8826d989b (diff) |
Implement threshold under
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 25ef816..b51c0f9 100644 --- a/__tests__/lexer.test.js +++ b/__tests__/lexer.test.js @@ -225,5 +225,15 @@ describe('lex', () => { { type: 'constant', value: 10 } ]) }) + + test('8t3d10', () => { + expect(lex('8t3d10')).toEqual([ + { type: 'constant', value: 8 }, + { type: 't' }, + { type: 'constant', value: 3 }, + { type: 'd' }, + { type: 'constant', value: 10 } + ]) + }) }) }) |