summaryrefslogtreecommitdiff
path: root/test/parser.spec.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/parser.spec.ts')
-rw-r--r--test/parser.spec.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/parser.spec.ts b/test/parser.spec.ts
new file mode 100644
index 0000000..63ec65b
--- /dev/null
+++ b/test/parser.spec.ts
@@ -0,0 +1,12 @@
+import { expect, test } from 'bun:test';
+import { TestPrograms } from './programs';
+import { Parser } from '@/parser';
+
+test('fibonacci program', () => {
+ const parser = new Parser(TestPrograms.Fibonacci);
+ const result = parser.parse();
+
+ console.log(result);
+
+ expect(result.errs).toBeEmpty();
+});