Skip to content

Commit 656cec0

Browse files
Fix tests for now
1 parent 8e23cf9 commit 656cec0

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

python/tests/test_high_level.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ def fib(x: i64Like) -> i64: # type: ignore[empty-body]
8181
egraph.check(eq(fib(i64(7))).to(i64(21)))
8282

8383

84-
@pytest.mark.xfail
8584
def test_fib_demand():
8685
egraph = EGraph()
8786

@@ -184,12 +183,15 @@ def test_relation():
184183
egraph.register(test_relation(i64(1), i64(1)))
185184

186185

187-
def test_set_variable_args():
186+
def test_variable_args():
188187
egraph = EGraph()
189-
egraph.check(Set[i64](i64(1), i64(2)).contains(i64(1)))
188+
# Create dummy function with type so its registered
189+
egraph.relation("_", Set[i64])
190190

191+
egraph.check(Set(i64(1), i64(2)).contains(i64(1)))
191192

192-
@pytest.mark.xfail
193-
def test_create_sort_based_on_arg():
193+
194+
@pytest.mark.xfail(reason="We have to manually register sorts before using them")
195+
def test_generic_sort():
194196
egraph = EGraph()
195-
egraph.register(Set(i64(1)))
197+
egraph.check(Set(i64(1), i64(2)).contains(i64(1)))

0 commit comments

Comments
 (0)