예제 #1
0
 def test_gt_than_100(self):
     result = check_weirdness(101)
     self.assertEqual(result, "Not Applicable")
예제 #2
0
 def test_odd_1(self):
     result = check_weirdness(1)
     self.assertEqual(result, "Weird")
예제 #3
0
 def test_even_gt_than_20(self):
     result = check_weirdness(22)
     self.assertEqual(result, "Not Weird")
예제 #4
0
 def test_less_than_1(self):
     result = check_weirdness(-1)
     self.assertEqual(result, "Not Applicable")
예제 #5
0
 def test_even_6_to_20(self):
     result = check_weirdness(10)
     self.assertEqual(result, "Weird")
예제 #6
0
 def test_even_2_to_5(self):
     result = check_weirdness(4)
     self.assertEqual(result, "Not Weird")
예제 #7
0
 def test_odd_gt_than_20(self):
     result = check_weirdness(23)
     self.assertEqual(result, "Weird")
예제 #8
0
 def test_odd_6_to_20(self):
     result = check_weirdness(19)
     self.assertEqual(result, "Weird")
예제 #9
0
 def test_odd_2_to_5(self):
     result = check_weirdness(3)
     self.assertEqual(result, "Weird")