aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2022-01-06 23:41:32 +0530
committerAkshay Nair <phenax5@gmail.com>2022-01-06 23:41:32 +0530
commit8ef91f03fac2bad20fb927fe2ca2782c66fdb513 (patch)
tree6214acb7d0cf940a4b4ac64fbca3c12294de71e8 /tests
parent3d88de49d99d86c70204d6870296b20177c2af21 (diff)
downloadelxr-8ef91f03fac2bad20fb927fe2ca2782c66fdb513.tar.gz
elxr-8ef91f03fac2bad20fb927fe2ca2782c66fdb513.zip
feat: adds more parser combinators
Diffstat (limited to 'tests')
-rw-r--r--tests/basic.spec.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/basic.spec.ts b/tests/basic.spec.ts
index eeeb121..962f076 100644
--- a/tests/basic.spec.ts
+++ b/tests/basic.spec.ts
@@ -9,7 +9,9 @@ import {
whitespaces0,
delimited,
symbol,
+ optional,
} from '../src/parser'
+import { parser } from '../src'
describe('Foobar', () => {
it('should do shit', () => {
@@ -26,4 +28,8 @@ describe('Foobar', () => {
right([2, '0 '])
)
})
+
+ it('should maybeshut', () => {
+ console.log(JSON.stringify(parser('fuck'), null, 2))
+ })
})