Skip to content

Commit

Permalink
Compare sorted hash table keys in test
Browse files Browse the repository at this point in the history
This fixes a test failure with Clozure CL.
The order of items returned by hash-table-keys is implementation-defined.
  • Loading branch information
fjl committed Jan 16, 2022
1 parent 33d96fe commit 7f29f8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/access.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@
(assert-equal value nil)
(assert-equal present-p nil))
(assert-equal
(list "something" "5" "four" "three" "two" "one")
(access +ht+ 'hash-table-keys))
(list "5" "four" "one" "something" "three" "two")
(sort (access +ht+ 'hash-table-keys) 'string<))
(assert-equal 3 (accesses o 'pl 'three ))))

(define-test test-with-access ()
Expand Down

0 comments on commit 7f29f8d

Please sign in to comment.