diff options
author | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2017-08-23 21:30:01 -0400 |
---|---|---|
committer | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2017-08-23 21:30:01 -0400 |
commit | fe1bb829ba1feeb4d8f384afe0ed62669d82407f (patch) | |
tree | 667520ac5019a24398255086d34460517421b8c8 /__tests__/lexer.test.js | |
parent | 5bb027bde84e0a8fdb01bfa680b511ad842498ef (diff) |
Lex and parse threshold
Diffstat (limited to '__tests__/lexer.test.js')
-rw-r--r-- | __tests__/lexer.test.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/__tests__/lexer.test.js b/__tests__/lexer.test.js index 5ae84cc..21ae3b0 100644 --- a/__tests__/lexer.test.js +++ b/__tests__/lexer.test.js @@ -194,4 +194,16 @@ describe('lex', () => { ]) }) }) + + describe('threshold', () => { + test('8T3d10', () => { + expect(lex('8T3d10')).toEqual([ + { type: 'constant', value: 8 }, + { type: 'T' }, + { type: 'constant', value: 3 }, + { type: 'd' }, + { type: 'constant', value: 10 } + ]) + }) + }) }) |