diff options
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 } + ]) + }) + }) }) |