Пример #1
0
 def testHumanReadableJoin(self):
     self.assertEqual(hrJoin([""]), "")
     self.assertEqual(hrJoin(["ice"]), "ice")
     self.assertEqual(hrJoin(["ice", "fire"]), "ice and fire")
     self.assertEqual(hrJoin(["wind", "ice", "fire"]), "wind, ice and fire")
     self.assertEqual(hrJoin(["dog", "cat", "hen", "yak", "ant"]),
                      "dog, cat, hen, yak and ant")
Пример #2
0
 def testHumanReadableJoin(self):
     self.assertEqual(hrJoin([""]), "")
     self.assertEqual(hrJoin (["glace"]), "glace")
     self.assertEqual(hrJoin (["glace", "feu"]), "glace et feu")
     self.assertEqual(hrJoin (["vent", "glace", "feu"]),
                      "vent, glace et feu")
     self.assertEqual(hrJoin (["chien", "chat", "poule", "yak", "fourmi"]),
                      "chien, chat, poule, yak et fourmi")