Esempio n. 1
0
 def test_name_to_number_hand(self):
     self.assertEqual(r.name_to_number('hand'),9999)
Esempio n. 2
0
 def test_name_to_number(self):
     self.assertEquals(rpsls.name_to_number("rock"),     0);
     self.assertEquals(rpsls.name_to_number("Spock"),    1);
     self.assertEquals(rpsls.name_to_number("paper"),    2);
     self.assertEquals(rpsls.name_to_number("lizard"),   3);
     self.assertEquals(rpsls.name_to_number("scissors"), 4);
Esempio n. 3
0
 def test_name_to_number_scissors(self):
     self.assertEqual(r.name_to_number('scissors'),4)
Esempio n. 4
0
 def test_name_to_number_thumb(self):
     self.assertEqual(r.name_to_number('thumb'),9999)
Esempio n. 5
0
 def test_name_to_number_lizard(self):
     self.assertEqual(r.name_to_number('lizard'),3)
Esempio n. 6
0
 def test_name_to_number_paper(self):
     self.assertEqual(r.name_to_number('paper'),2)
Esempio n. 7
0
 def test_name_to_number_Spock(self):
     self.assertEqual(r.name_to_number('Spock'),1)
Esempio n. 8
0
 def test_name_to_number_rock(self):
     self.assertEqual(r.name_to_number('rock'),0)
Esempio n. 9
0
 def test_name_to_number(self):
     self.assertEquals(rpsls.name_to_number("rock"), 0)
     self.assertEquals(rpsls.name_to_number("Spock"), 1)
     self.assertEquals(rpsls.name_to_number("paper"), 2)
     self.assertEquals(rpsls.name_to_number("lizard"), 3)
     self.assertEquals(rpsls.name_to_number("scissors"), 4)