aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/parse-expr.spec.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/parse-expr.spec.ts b/tests/parse-expr.spec.ts
new file mode 100644
index 0000000..00097a4
--- /dev/null
+++ b/tests/parse-expr.spec.ts
@@ -0,0 +1,9 @@
+import { parse } from '../src/parse-expr'
+import * as P from '../src/utils/parser-comb'
+
+describe('parser', () => {
+ it('should die', () => {
+ const res = parse('hello(test)')
+ expect(res).toEqual(['hello', '(test, 1)'])
+ })
+})