Skip to content

Commit 413aaf4

Browse files
committed
Remove broken test (Effekt miscompilation)
see effekt-lang/effekt#934
1 parent f27cdf1 commit 413aaf4

1 file changed

Lines changed: 14 additions & 13 deletions

File tree

test/ruler.effekt

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,18 @@ def tests() = suite("└ ruler tests") {
6464
Constructor(Port("xSym4", Pos()), [Port("xDup11_1", Pos()), Port("xDup11_1", Neg())], LightTriangle())])
6565
}
6666

67-
test("normalization: erasing church") {
68-
val program: Program = collect {
69-
with assertNoThrow[WrongFormat]
70-
with source[Char] { "(x=>y=>y s=>z=>(s (s (s z))))".each }
71-
compile!()
72-
}
73-
val redexes = box { program.redexes() }
74-
val (normalized, steps) = normalize(program, redexes)
75-
assertEqual(steps, 13)
76-
assertEqual(list::collect[Constructor] { normalized() }, [
77-
Constructor(Port("yDup3", Neg()), [Port("ySym1", Pos())], DarkTriangle()),
78-
Constructor(Port("kAbs2", Pos()), [Port("yDup3", Pos()), Port("ySym1", Neg())], LightTriangle())])
79-
}
67+
// TODO: this works, but only without optimizations ("b_k_0 is not defined")
68+
// test("normalization: erasing church") {
69+
// val program: Program = collect {
70+
// with assertNoThrow[WrongFormat]
71+
// with source[Char] { "(x=>y=>y s=>z=>(s (s (s z))))".each }
72+
// compile!()
73+
// }
74+
// val redexes = box { program.redexes() }
75+
// val (normalized, steps) = normalize(program, redexes)
76+
// assertEqual(steps, 13)
77+
// assertEqual(list::collect[Constructor] { normalized() }, [
78+
// Constructor(Port("yDup3", Neg()), [Port("ySym1", Pos())], DarkTriangle()),
79+
// Constructor(Port("kAbs2", Pos()), [Port("yDup3", Pos()), Port("ySym1", Neg())], LightTriangle())])
80+
// }
8081
}

0 commit comments

Comments
 (0)