def test_insertion_odd(): actual = insertShiftArray([3, 4, 5, 6, 7, 8], 20) expected = [3, 4, 5, 20, 6, 7, 8] assert actual == expected
def test_shift_even_array2(): actual = insertShiftArray([2, 4, 6, 8, 10, 12, 14, 16, 18, 20], 100) expected = [2, 4, 6, 8, 10, 100, 12, 14, 16, 18, 20] assert actual == expected
def test_insertion_even(): actual = insertShiftArray([3, 4, 5, 6, 7], 20) expected = [3, 4, 5, 20, 6, 7] assert actual == expected
def test_shift_odd_array2(): actual = insertShiftArray([1, 2, 3, 4, 5, 7, 8, 9, 10, 11], 6) expected = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] assert actual == expected
def test_shift_even_array(): actual = insertShiftArray([2, 4, 6, 8], 5) expected = [2, 4, 5, 6, 8] assert actual == expected
def test_insert_a_val_into_the_middle_of_an_array(): expected = [1, 2, 11, 3, 4] actual = insertShiftArray([1, 2, 3, 4], 11) assert expected == actual
def test_shift_odd_array(): actual = insertShiftArray([1, 2, 3, 5, 6, 7], 4) expected = [1, 2, 3, 4, 5, 6, 7] assert actual == expected
def test_should_round_the_halfway_point_to_the_nearest_whole_number_if_array_length_is_odd( ): expected = [1, 2, 11, 3] actual = insertShiftArray([1, 2, 3], 11) assert expected == actual
def test_should_print_nothing_if_array_is_empty(): expected = 11 actual = insertShiftArray([], 11) assert expected is actual, "Expected failure test passes"
def test_on_a_single_item_list(): expected = [1, 2] actual = insertShiftArray([1], 2) assert expected == actual
def test_shift_odd(): actual = insertShiftArray(arg2, num) value = [2, 3, 4, 5, 6, 8] assert actual == value
def test_shift_even(): actual = insertShiftArray(arg, num) value = [2, 4, 5, 6, 8] assert actual == value