Skip to content

Commit

Permalink
Ensure we set the frugal version of the diag runner
Browse files Browse the repository at this point in the history
  • Loading branch information
prozacchiwawa committed Nov 17, 2023
1 parent dc61646 commit 5ce518f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def test_smoke_compare():
compare_program.run(Program.to([]))

def test_handcalc():
diag_run_clvm(test_handcalc_program, Program.to([]), 'test_handcalc.sym')
diag_run_clvm(test_handcalc_program, Program.to([]), 'test_handcalc.sym', {'print': True})

def proper_list_inner(result,cl):
if hasattr(cl, 'pair') and cl.pair is not None:
Expand Down Expand Up @@ -137,20 +137,20 @@ def test_permutations_2():
all_b_string = 0x626262626262
for try_list in [[all_a_string,all_b_string], [all_b_string,all_a_string]]:
want_set = list([list(v) for v in sorted(permutations(try_list))])
listed_result = diag_run_clvm(smoke_test_permutations_program, Program.to([try_list]), 'smoke_test_permutations.sym')
listed_result = diag_run_clvm(smoke_test_permutations_program, Program.to([try_list]), 'smoke_test_permutations.sym', {'print': True})
pl = proper_list(listed_result)
perms_result = sorted([int_list(x) for x in de_none_list(pl)])
assert want_set == perms_result

def test_chialisp_sort_program():
diag_run_clvm(test_sort_program, Program.to([]), 'test_sort.sym')
diag_run_clvm(test_sort_program, Program.to([]), 'test_sort.sym', {'print': True})

def test_permutations_n():
for i in range(3,6):
do_test_permutations_of_size_n(i)

def test_chialisp_permutations_program():
diag_run_clvm(test_permutations_program, Program.to([3, 5]), 'test_permutations.sym')
diag_run_clvm(test_permutations_program, Program.to([3, 5]), 'test_permutations.sym', {'print': True})

def test_smoke_sort():
for length in range(7): # 0-7 length
Expand Down

0 comments on commit 5ce518f

Please sign in to comment.