Exemplo n.º 1
0
 def test_ord1(self):
   self.assertEqual("Put in an integer.", ordinal.ordinal_type(23.4))
Exemplo n.º 2
0
 def test_ord(self):
   self.assertEqual("11th", ordinal.ordinal_type(11))
Exemplo n.º 3
0
 def test_ord3(self):
   self.assertEqual("2nd", ordinal.ordinal_type(2))        
Exemplo n.º 4
0
 def test_two(self):
   thing1=ordinal.ordinal_type(22)
   thing2=ordinal.ordinal_type(23)
   self.assertNotEqual(thing1, thing2)
Exemplo n.º 5
0
 def test_ord2(self):
   self.assertEqual("13th", ordinal.ordinal_type(13))