def test_it_should_search_the_right_side(self): binary_search = BinarySearch(self._ordered_list) assert binary_search.find(17) == True
def test_it_should_return_false_if_val_not_in_list_low_val(self): binary_search = BinarySearch(self._ordered_list) assert binary_search.find(0) == False
def test_it_should_return_true_if_root_node_is_val(self): binary_search = BinarySearch(self._ordered_list) assert binary_search.find(7) == True