From 3e662e183a52ea821c72b3e8cd34232907c75036 Mon Sep 17 00:00:00 2001 From: Varg Date: Sat, 21 Sep 2024 00:22:43 +0200 Subject: [PATCH] Extra tests for empty tuples --- tests/tuples.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/tuples.test.ts b/tests/tuples.test.ts index e2f7b27..b010a91 100644 --- a/tests/tuples.test.ts +++ b/tests/tuples.test.ts @@ -71,11 +71,13 @@ describe('tuples', () => { test('empty tuple with parenthesis', () => { runTestFile(api, `a = 2 & %a = ()`); expect(api.readVariable('%a')).toEqual([]); + expect(api.readVariable('a')).toEqual(0); }); test('empty tuple with brackets', () => { runTestFile(api, `a = 2 & %a = []`); expect(api.readVariable('%a')).toEqual([]); + expect(api.readVariable('a')).toEqual(0); }); test('nested tuple with single item', () => {