From 203925d9a48d34537bdf6cd25502134df5e91ae7 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Wed, 24 Jan 2024 18:59:13 -0700 Subject: initial commit --- test/parser.spec.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/parser.spec.ts (limited to 'test/parser.spec.ts') 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(); +}); -- cgit v1.2.3-70-g09d2