From e3d561c11f56854f21b2fb90342011d8785b65a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=AA=E5=BF=83=E7=A6=BE?= Date: Tue, 3 Dec 2019 05:28:20 +0800 Subject: [PATCH] Update tests.py --- tests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests.py b/tests.py index 134adb3..eb88c25 100644 --- a/tests.py +++ b/tests.py @@ -92,7 +92,7 @@ def test_after_judge(self): [('1 1', '1')], 1, (None, 'a.out')) - self.assertEqual(result[0][0][0], 'OFNF') + self.assertEqual(result[0][0][0], 'ONF') self.assertFalse(result[1]) def test_io(self): @@ -119,7 +119,7 @@ def test_io(self): self.assertEqual(result[0][2][0], 'RE') self.assertFalse(result[1]) - def test_ofnf(self): + def test_onf(self): result = judge({'image': 'gcc:4.8', 'source': 'a.c', 'compile': 'gcc a.c', @@ -136,8 +136,8 @@ def test_ofnf(self): ('1 0', '')], 1, (None, 'a.out')) - self.assertEqual(result[0][0][0], 'OFNF') - self.assertEqual(result[0][1][0], 'OFNF') + self.assertEqual(result[0][0][0], 'ONF') + self.assertEqual(result[0][1][0], 'ONF') self.assertEqual(result[0][2][0], 'RE') self.assertFalse(result[1])