update conditional tests
This commit is contained in:
parent
0dbba4d847
commit
51b64da106
|
|
@ -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)
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user