def test_get_tle_result(self): dr = DummyResult(-15, self.HELLO_WORLD) result = judge.getResult(dr, self.HELLO_WORLD) self.assertEqual(result, status.TIME_LIMIT_EXCEEDED)
def test_get_wa_result(self): dr = DummyResult(0, self.HELLO_WORLD) result = judge.getResult(dr, self.HELLO_WORLD + "!") self.assertEqual(result, status.WRONG_ANSWER)
def test_get_re_result(self): dr = DummyResult(-1, self.HELLO_WORLD) result = judge.getResult(dr, self.HELLO_WORLD) self.assertEqual(result, status.RUNTIME_ERROR)
def test_get_ac_result(self): dr = DummyResult(0, self.HELLO_WORLD) result = judge.getResult(dr, self.HELLO_WORLD) self.assertEqual(result, status.ANSWER_CORRECT)