Example #1
0
 def test_both_empty(self):
     assert pyaoi.find_end([], []) == -1
Example #2
0
 def test_super_empty(self):
     assert pyaoi.find_end([], [1, 2, 3, 4]) == -1
Example #3
0
 def test_not_present(self):
     assert pyaoi.find_end([1, 2, 3], [1, 2, 3, 4]) == -1
Example #4
0
 def test_third_index(self):
     assert pyaoi.find_end([1, 1, 1, 2, 3], [1, 2, 3]) == 2
Example #5
0
 def test_first_index(self):
     assert pyaoi.find_end([1, 2, 3], [1, 2, 3]) == 0
Example #6
0
 def test_last_index(self):
     assert pyaoi.find_end([1, 2, 3, 1, 2, 3, 1, 2, 3], [1, 2, 3]) == 6