def testFindClosestPairFitch(self): self.assertEqual( sorted(list(hw.findClosestPair(hw.fitchList, hw.fitchMatrix))), [('man', (), ()), ('monkey', (), ())], "Incorrect closest pair")
def testFindClosestPairCarnivores(self): self.assertEqual( sorted( list(hw.findClosestPair(hw.carnivoresList, hw.carnivoresMatrix))), [('bear', (), ()), ('raccoon', (), ())], "Incorrect closest pair")
def testFindClosestPairGroodies(self): self.assertEqual( sorted(list(hw.findClosestPair(hw.groodiesList, hw.groodiesMatrix))), [('Froody', (), ()), ('Groody', (), ())], "Incorrect closest pair")
def testFindClosestPairFitch(self): self.assertEqual(sorted(list(hw.findClosestPair(hw.fitchList, hw.fitchMatrix))), [('man', (), ()), ('monkey', (), ())], "Incorrect closest pair")
def testFindClosestPairCarnivores(self): self.assertEqual(sorted(list(hw.findClosestPair(hw.carnivoresList, hw.carnivoresMatrix))), [('bear', (), ()), ('raccoon', (), ())], "Incorrect closest pair")
def testFindClosestPairGroodies(self): self.assertEqual(sorted(list(hw.findClosestPair(hw.groodiesList, hw.groodiesMatrix))), [('Froody', (), ()), ('Groody', (), ())], "Incorrect closest pair")