Skip to content

Commit

Permalink
Add xetra case to cover a corner case
Browse files Browse the repository at this point in the history
  • Loading branch information
yafshar committed Mar 13, 2024
1 parent 8f07f59 commit abebcd3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_kim_edn/test_dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ def __lt__(self, o):

L = [X() for i in range(1122)]
d = D()
d[1337] = "true.dat"
d[hash(d.keys()[0])] = "true.dat"

self.assertEqual(self.dumps(d, sort_keys=True), '{"1337" "true.dat"}')
self.assertEqual(self.dumps(d, sort_keys=(not L[0] < L[1])),
'{"1337" "true.dat"}')


class TestPyDump(TestDump, PyTest):
Expand Down

0 comments on commit abebcd3

Please sign in to comment.