示例#1
0
 def test_name_to_number_hand(self):
     self.assertEqual(r.name_to_number('hand'),9999)
示例#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);
示例#3
0
 def test_name_to_number_scissors(self):
     self.assertEqual(r.name_to_number('scissors'),4)
示例#4
0
 def test_name_to_number_thumb(self):
     self.assertEqual(r.name_to_number('thumb'),9999)
示例#5
0
 def test_name_to_number_lizard(self):
     self.assertEqual(r.name_to_number('lizard'),3)
示例#6
0
 def test_name_to_number_paper(self):
     self.assertEqual(r.name_to_number('paper'),2)
示例#7
0
 def test_name_to_number_Spock(self):
     self.assertEqual(r.name_to_number('Spock'),1)
示例#8
0
 def test_name_to_number_rock(self):
     self.assertEqual(r.name_to_number('rock'),0)
示例#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)