Ejemplo n.º 1
0
def test_list_diff_index_unequal_list_len_longer_first():
	list1 = ["abc", "def", "ghi"]
	list2 = ["abc", "def", "ghi", "lmn"]
	assert list_diff_index(list1, list2) == (3, -1)
Ejemplo n.º 2
0
def test_list_diff_index_equal_list_len_diff_strings():
	list1 = ["azc", "dbf"]
	list2 = ["abc", "def"]
	assert list_diff_index(list1, list2) == (0, 1)
Ejemplo n.º 3
0
def test_list_diff_index_equal_lists():
	list1 = ["abc", "def"]
	list2 = ["abc", "def"]
	assert list_diff_index(list1, list2) == (-1, -1)
Ejemplo n.º 4
0
def test_list_diff_index_unequal_list_len_longer_first():
    list1 = ["abc", "def", "ghi"]
    list2 = ["abc", "def", "ghi", "lmn"]
    assert list_diff_index(list1, list2) == (3, -1)
Ejemplo n.º 5
0
def test_list_diff_index_equal_list_len_diff_strings():
    list1 = ["azc", "dbf"]
    list2 = ["abc", "def"]
    assert list_diff_index(list1, list2) == (0, 1)
Ejemplo n.º 6
0
def test_list_diff_index_equal_lists():
    list1 = ["abc", "def"]
    list2 = ["abc", "def"]
    assert list_diff_index(list1, list2) == (-1, -1)