m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/__tests__/lexer.test.js
diff options
context:
space:
mode:
Diffstat (limited to '__tests__/lexer.test.js')
-rw-r--r--__tests__/lexer.test.js10
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 }
+ ])
+ })
})
})