File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,6 @@ def fib(x: i64Like) -> i64: # type: ignore[empty-body]
81
81
egraph .check (eq (fib (i64 (7 ))).to (i64 (21 )))
82
82
83
83
84
- @pytest .mark .xfail
85
84
def test_fib_demand ():
86
85
egraph = EGraph ()
87
86
@@ -184,12 +183,15 @@ def test_relation():
184
183
egraph .register (test_relation (i64 (1 ), i64 (1 )))
185
184
186
185
187
- def test_set_variable_args ():
186
+ def test_variable_args ():
188
187
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 ])
190
190
191
+ egraph .check (Set (i64 (1 ), i64 (2 )).contains (i64 (1 )))
191
192
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 ():
194
196
egraph = EGraph ()
195
- egraph .register (Set (i64 (1 )))
197
+ egraph .check (Set ( i64 ( 1 ), i64 ( 2 )). contains (i64 (1 )))
You can’t perform that action at this time.
0 commit comments