Exemple #1
0
    def test_identical_arrays(self):
        array1 = ['A', 'B', 'C', 'D']
        array2 = ['A', 'B', 'C', 'D']
        assert redact_lists(array1, array2) == []


# if __name__ == '__main__':
#     unittest.main()
# return [item for item in first if item not in second]
Exemple #2
0
 def test_word_in_first_not_second(self):
     array1 = ['A', 'B', 'C', 'D', 'E']
     array2 = ['A', 'B', 'C', 'D']
     assert redact_lists(array1, array2) == ['E']
Exemple #3
0
 def test_empty_arrays(self):
     array1 = []
     array2 = []
     assert redact_lists(array1, array2) == []
Exemple #4
0
 def identical_arrays(self):
     array1 = ['A', 'B', 'C', 'D']
     array2 = ['A', 'B', 'C', 'D']
     assert redact_lists(array1, array2) == ['']