Skip to content

Commit 975dd48

Browse files
committed
add tests/test.py
1 parent 1d43fa0 commit 975dd48

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import random
2+
import sortingx as six
3+
4+
data = [[random.randint(0, 10) for _ in range(1000)] for _ in range(10000)]
5+
test = sorted(data, key=lambda x : (x[1], x[2], x[3]), reverse=True)
6+
six.bubble(data, lambda x : (x[1], x[2], x[3]), reverse=True)
7+
print(data == test)

0 commit comments

Comments
 (0)