summaryrefslogtreecommitdiff
path: root/test/interpreter.spec.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/interpreter.spec.ts')
-rw-r--r--test/interpreter.spec.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/interpreter.spec.ts b/test/interpreter.spec.ts
index 6d3189a..acca7bb 100644
--- a/test/interpreter.spec.ts
+++ b/test/interpreter.spec.ts
@@ -45,3 +45,10 @@ test('Application of identity function', async () => {
const result = await evaluate(ast, testingLogger);
expect(result).toEqual({ type: 'int', value: 3 });
});
+
+test('Record construction', async () => {
+ const ast = peggyParse(await TestPrograms.RecordConstruction);
+
+ const result = await evaluate(ast, testingLogger);
+ expect(result).toEqual({ type: 'int', value: 3 });
+});