Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)