示例#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)
示例#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)
示例#3
0
def test_list_diff_index_equal_lists():
	list1 = ["abc", "def"]
	list2 = ["abc", "def"]
	assert list_diff_index(list1, list2) == (-1, -1)
示例#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)
示例#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)
示例#6
0
def test_list_diff_index_equal_lists():
    list1 = ["abc", "def"]
    list2 = ["abc", "def"]
    assert list_diff_index(list1, list2) == (-1, -1)