Example #1
0
	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)
Example #2
0
	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)
Example #3
0
	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)
Example #4
0
	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)