Example #1
0
 def test_equals_3(self):
     self.assertEqual(anagrams('laser', ['lazing', 'lazy', 'lacer']), [])
Example #2
0
 def test_equals(self):
     self.assertEqual(anagrams('abba', ['aabb', 'abcd', 'bbaa', 'dada']),
                      ['aabb', 'bbaa'])
Example #3
0
 def test_equals_2(self):
     self.assertEqual(anagrams(
         'racer', ['crazer', 'carer', 'racar', 'caers', 'racer']),
         ['carer', 'racer'])