예제 #1
0
파일: tests.py 프로젝트: papedaniel/oioioi
 def test_min_group_scorer(self):
     self.assertEqual((50, 100, 'OK'),
             utils.min_group_scorer(self.g_results_ok))
     self.assertEqual((0, 100, 'WA'),
             utils.min_group_scorer(self.g_results_wrong))
     with self.assertRaises(utils.UnequalMaxScores):
         utils.min_group_scorer(self.g_results_unequal_max_scores)
 def test_min_group_scorer(self):
     self.assertEqual((50, 100, 'OK'),
                      utils.min_group_scorer(self.g_results_ok))
     self.assertEqual((0, 100, 'WA'),
                      utils.min_group_scorer(self.g_results_wrong))
     with self.assertRaises(utils.UnequalMaxScores):
         utils.min_group_scorer(self.g_results_unequal_max_scores)
예제 #3
0
 def test_min_group_scorer(self):
     self.assertEqual((50, 'OK'), utils.min_group_scorer(self.g_results_ok))
     self.assertEqual((0, 'WA'),
             utils.min_group_scorer(self.g_results_wrong))