Skip to content

Commit

Permalink
Fix order of expected sorting since atomsort sorts large to small
Browse files Browse the repository at this point in the history
  • Loading branch information
prozacchiwawa committed Sep 18, 2024
1 parent bb70f95 commit a6fa824
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test_onehandcalc.clsp
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
)

(defun try_permuted_list (mylist)
(busy (lambda ((& mylist) newlist) (try_list mylist newlist))
(busy (lambda ((& mylist) newlist) (try_list (reverse mylist) newlist))
(permutations mylist)
0
)
)
(last
(try_list 0 0)
(try_list (range 15) (range 15))
(try_list (range 15) (reverse (range 15)))
(try_list (reverse (range 15)) (range 15))
(try_list (reverse (range 15)) (reverse (range 15)))
(try_permuted_list (list -1 -1 0 0 2))
(busy (lambda (i) (try_permuted_list (range i)))
(range 4)
Expand Down

0 comments on commit a6fa824

Please sign in to comment.