Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Commit

Permalink
Update tests.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wxh06 committed Dec 2, 2019
1 parent 3e5dc78 commit e3d561c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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',
Expand All @@ -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])

Expand Down

0 comments on commit e3d561c

Please sign in to comment.