def test_failB2(): actual = BinarySearch([4, 8, 15, 16, 23, 42], 23) expected = 1 assert actual != expected
def test_passB2_not_in(): actual = BinarySearch([11, 22, 33, 44, 55, 66, 77], 90) expected = -1 assert actual == expected
def test_fail(): actual = BinarySearch([1, 2, 3, 4, 5, 6], 4) expected = 0 assert actual != expected
def test_passB2(): actual = BinarySearch([4, 8, 15, 16, 23, 42], 23) expected = 4 assert actual == expected
def test_version_none(): array = [1,2,7,33,45,46,55,77,78,89] n = 49 actual = BinarySearch(array, n) expected = -1 assert actual == expected
def test_version_even(): array = [1,2,7,33,45,46,77,78,89] n = 77 actual = BinarySearch(array, n) expected = 6 assert actual == expected
def test_should_still_print_neg_one_if_passed_a_string(): expected = -1 actual = BinarySearch([1, 2, 3, 4, 5, 6], "hi!") assert expected is actual, "Expected failure test passes"
def test_failed(): actual = BinarySearch([1, 3, 5, 7, 9], 3) expected = 2 assert actual != expected
def test_BinarySearch(): excepted = -1 actual = BinarySearch(list1, val1) assert actual == excepted
def test_checking_a_value_that_does_not_exist_in_the_array(): expected = -1 actual = BinarySearch([1, 2, 3], 11) assert expected is actual, "Edge case test passes"
def test_BinarySearch3(): excepted = 1 actual = BinarySearch(list3, val3) assert actual == excepted
def test_BinarySearch2(): excepted = -1 actual = BinarySearch(list2, val2) assert actual == excepted
def test_random_failed(): actual = BinarySearch([1, 7, 3, 8, 5], 5) expected = 4 assert actual != expected
def test_failB2_not_in(): actual = BinarySearch([11, 22, 33, 44, 55, 66, 77], 90) expected = 1 assert actual != expected
def test_checking_a_value_that_exists_in_the_array(): expected = 4 actual = BinarySearch([1, 2, 3, 4, 5, 6], 5) assert expected is actual, "Happy path test passes"
def test_pass(): actual = BinarySearch([1, 2, 3, 4, 5, 6], 4) expected = 3 assert actual == expected
def test_neg_passed(): actual = BinarySearch([-4, -3, -2, -1, 0], -3) expected = 1 assert actual == expected