From 51b64da10676a83f8b3cfdc94b87ec41293891ff Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Wed, 29 Oct 2025 11:21:24 -0700 Subject: [PATCH] update conditional tests --- src/prelude/tests/prelude.test.ts | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/prelude/tests/prelude.test.ts b/src/prelude/tests/prelude.test.ts index 89969dd..8f3d194 100644 --- a/src/prelude/tests/prelude.test.ts +++ b/src/prelude/tests/prelude.test.ts @@ -164,9 +164,7 @@ describe('collections', () => { await expect(`empty? meow`).toEvaluateTo(false, globalFunctions) }) - // TODO: These tests fail due to parser/compiler issues with == operator in function bodies - // The functions themselves work correctly when passed native JS functions - test.skip('list.filter keeps matching elements', async () => { + test('list.filter keeps matching elements', async () => { await expect(` is-positive = do x: x == 3 or x == 4 or x == 5 @@ -184,7 +182,7 @@ describe('collections', () => { `).toEvaluateTo(10, globalFunctions) }) - test.skip('list.find returns first match', async () => { + test('list.find returns first match', async () => { await expect(` is-four = do x: x == 4 @@ -193,11 +191,9 @@ describe('collections', () => { `).toEvaluateTo(4, globalFunctions) }) - test.skip('list.find returns null if no match', async () => { + test('list.find returns null if no match', async () => { await expect(` - is-ten = do x: - x == 10 - end + is-ten = do x: x == 10 end list.find [1 2 3] is-ten `).toEvaluateTo(null, globalFunctions) })