Skip to content

Commit 4353653

Browse files
Fix two tests
1 parent 2257d76 commit 4353653

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

python/tests/test_py_object_sort.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def test_dict_update(self):
6969
Call(DUMMY_SPAN, "py-dict-update", [dict_expr, a_expr, new_value_expr, b_expr, new_value_expr]),
7070
)
7171
),
72-
Extract(DUMMY_SPAN, Var(DUMMY_SPAN, "new_dict"), Lit(DUMMY_SPAN, Int(1))),
72+
Extract(DUMMY_SPAN, Var(DUMMY_SPAN, "new_dict"), Lit(DUMMY_SPAN, Int(0))),
7373
)
7474
report = egraph.extract_report()
7575
assert isinstance(report, Best)

python/tests/test_unstable_fn.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ def apply_f(f: Callable[[A], A], x: A) -> A:
315315
egraph = EGraph(save_egglog_string=True)
316316
x = egraph.let("x", apply_f(lambda x: A(), A()))
317317
y = egraph.let("y", apply_f(lambda x: alt_a, A()))
318+
egraph.run(10)
318319
egraph.check(eq(x).to(A()))
319320
egraph.check(eq(y).to(alt_a))
320321

0 commit comments

Comments
 (0)