From 5b77a409c912f7251da8c170bd4a3aa8826d989b Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Wed, 30 Aug 2017 16:30:23 -0400 Subject: Implement again under --- __tests__/parser.test.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to '__tests__/parser.test.js') diff --git a/__tests__/parser.test.js b/__tests__/parser.test.js index 765388d..ad67fc4 100644 --- a/__tests__/parser.test.js +++ b/__tests__/parser.test.js @@ -219,6 +219,16 @@ describe('parse', () => { right: { type: 'constant', value: 10 } } }) + + expect(parse('10a3d10')).toEqual({ + type: 'a', + left: { type: 'constant', value: 10 }, + right: { + type: 'd', + left: { type: 'constant', value: 3 }, + right: { type: 'constant', value: 10 } + } + }) }) it('parases dice with threshold', () => { -- cgit v1.2.3