Lines Matching full:actual
21 def sorted_list_difference(expected, actual):
25 elements in the "expected" list but not in the "actual" list, and the
26 second contains those elements in the "actual" list but not in the
35 a = actual[j]
44 while actual[j] == a:
53 while actual[j] == a:
57 unexpected.extend(actual[j:])
62 def unorderable_list_difference(expected, actual, ignore_duplicate=False):
74 actual.remove(item)
78 for lst in expected, actual:
85 while actual:
86 item = actual.pop()
90 actual.remove(item)
95 # anything left in actual is unexpected
96 return missing, actual
98 _Mismatch = namedtuple('Mismatch', 'actual expected value')
100 def _count_diff_all_purpose(actual, expected):
103 s, t = list(actual), list(expected)
142 def _count_diff_hashable(actual, expected):
145 s, t = _ordered_count(actual), _ordered_count(expected)