diff options
Diffstat (limited to 'src/util/test_array.py')
-rw-r--r-- | src/util/test_array.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/util/test_array.py b/src/util/test_array.py deleted file mode 100644 index 38759b9..0000000 --- a/src/util/test_array.py +++ /dev/null @@ -1,12 +0,0 @@ -from array import insert_position - -def test_insert_position(): - assert insert_position(0, [], False) == 0 - assert insert_position(1, [1, 2, 3], False) == 0 - assert insert_position(2, [1, 2, 3], False) == 1 - assert insert_position(3, [1, 2, 3], False) == 2 - assert insert_position(8, [1, 2, 3], False) == 3 - assert insert_position(8, [3, 2, 1], True) == 0 - assert insert_position(3, [3, 2, 1], True) == 0 - assert insert_position(2, [3, 2, 1], True) == 1 - assert insert_position(1, [3, 2, 1], True) == 2 |