def testAexceptions(self): self.assertEqual("some egg", lang.a("some egg")) self.assertEqual("someone's egg", lang.a("someone's egg")) self.assertEqual("Someone's egg", lang.A("someone's egg")) self.assertEqual("Someone's egg", lang.A("Someone's egg")) self.assertEqual("five eggs", lang.a("five eggs")) self.assertEqual("the fifth egg", lang.a("fifth egg")) self.assertEqual("the seventieth egg", lang.a("seventieth egg")) self.assertEqual("The seventieth egg", lang.A("seventieth egg"))
def testA(self): self.assertEqual("", lang.a("")) self.assertEqual("an e", lang.a("e")) self.assertEqual("a q", lang.a("q")) self.assertEqual("a house", lang.a("house")) self.assertEqual("a house", lang.a("a house")) self.assertEqual("a House", lang.a("House")) self.assertEqual("an egg", lang.a("egg")) self.assertEqual("an egg", lang.a("an egg")) self.assertEqual("An egg", lang.a("An egg")) self.assertEqual("the egg", lang.a("the egg")) self.assertEqual("The egg", lang.a("The egg")) self.assertEqual("a university", lang.a("university")) self.assertEqual("a university magazine", lang.a("university magazine")) self.assertEqual("a user", lang.a("user")) self.assertEqual("an unforgettable experience", lang.a("unforgettable experience")) self.assertEqual("an umbrella", lang.a("umbrella")) self.assertEqual("a history", lang.a("history")) self.assertEqual("an hour", lang.a("hour")) self.assertEqual("an honour", lang.a("honour")) self.assertEqual("a historic day", lang.a("historic day")) self.assertEqual("A user", lang.A("user")) self.assertEqual("An hour", lang.A("hour")) self.assertEqual("an uno", lang.a("uno")) self.assertEqual("an hourglass", lang.a("hourglass")) self.assertEqual("a unicycle", lang.a("unicycle")) self.assertEqual("a universe", lang.a("universe")) self.assertEqual("an honest mistake", lang.a("honest mistake")) self.assertEqual("a yard", lang.a("yard")) self.assertEqual("a yves", lang.a("yves")) self.assertEqual("an igloo", lang.a("igloo")) self.assertEqual("a yard", lang.a("yard")) self.assertEqual("a YARD", lang.a("YARD")) self.assertEqual("A YARD", lang.A("YARD")) self.assertEqual("an ycleped", lang.a("ycleped")) self.assertEqual("a YCLEPED", lang.a("YCLEPED")) self.assertEqual("an yttric", lang.a("yttric")) self.assertEqual("an yggdrasil", lang.a("yggdrasil"))
def testAcapital(self): self.assertEqual("", lang.A("")) self.assertEqual("An e", lang.A("e")) self.assertEqual("A q", lang.A("q")) self.assertEqual("A house", lang.A("house")) self.assertEqual("A house", lang.A("a house")) self.assertEqual("A House", lang.A("House")) self.assertEqual("An egg", lang.A("egg")) self.assertEqual("An egg", lang.A("an egg")) self.assertEqual("An egg", lang.A("An egg")) self.assertEqual("The egg", lang.A("the egg")) self.assertEqual("The egg", lang.A("The egg"))