Skip to content

Commit

Permalink
online-judge-tools#438: Add coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
fukatani committed Oct 14, 2019
1 parent b841c6f commit efeea11
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/command_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,14 @@ def test_call_test_float(self):
'path': 'test/sample-4.out',
'data': 'bar\n'
},
{
'path': 'test/sample-5.in',
'data': '1.0\n2.0\n'.replace('\n', os.linesep)
},
{
'path': 'test/sample-5.out',
'data': '1.0\n'.replace('\n', os.linesep)
},
],
expected=[{
'status': 'AC',
Expand Down Expand Up @@ -183,6 +191,15 @@ def test_call_test_float(self):
},
'output': 'foo\n',
'exitcode': 0,
}, {
'status': 'WA',
'testcase': {
'name': 'sample-5',
'input': '%s/test/sample-5.in',
'output': '%s/test/sample-5.out',
},
'output': '1.0\n2.0\n'.replace('\n', os.linesep),
'exitcode': 0,
}],
)

Expand Down

0 comments on commit efeea11

Please sign in to comment.