We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f250bf2 commit dfd2b9aCopy full SHA for dfd2b9a
1 file changed
Gnome_sort/Python/jcla1/gnome_sort_test.py
@@ -0,0 +1,19 @@
1
+from gnome_sort import gnome_sort
2
+
3
+def test_gnome_sort():
4
+ arr = [5,4,3,2,1]
5
+ assert gnome_sort(arr) == sorted(arr)
6
7
+ arr = [1]
8
9
10
+ arr = [1,2,3,4,5,6]
11
12
13
+ arr = []
14
15
16
+ print "All test passed!"
17
18
+if __name__ == '__main__':
19
+ test_gnome_sort()
0 commit comments