def test_isAnagram(self): self.assertTrue(anagram.isAnagram('sama', 'asam')) self.assertTrue(anagram.isAnagram('asma', 'sama')) self.assertTrue(anagram.isAnagram('asma', 'asam')) self.assertFalse(anagram.isAnagram('sama', 'basa')) self.assertTrue(anagram.isAnagram('sama', 'Asam'))
def test2(self): self.assertEqual(isAnagram("Heart", "Earth"), True)
def test4(self): self.assertEqual(isAnagram("something", "Algo"), False)
def test(self): self.assertEqual(isAnagram("claimed", "decimal"), True)
def test3(self): self.assertEqual(isAnagram("Race", "Care"), True)