Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SZonkil committed Mar 14, 2024
1 parent 7b0fc72 commit 14f6cc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sio/workers/test/sources/chk-fraction.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ int main(int argc, char **argv) {
fscanf(fdh, "%s", buf);
fscanf(fdo, "%s", buf2);
if (strcmp(buf, buf2) == 0)
puts("OK\nOK\n84 2");
puts("OK\nOK\n84/2");
else
puts("WRONG");
return 0;
Expand Down
4 changes: 2 additions & 2 deletions sio/workers/test/test_executors.py
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,7 @@ def test_checker_percentage_parsing():
eq_(output_to_fraction('007'), (7, 1))
eq_(output_to_fraction('007/0042'), (1, 6))
eq_(output_to_fraction('1e5'), (100000, 1))
eq_(output_to_fraction(''), (100, 1))

with pytest.raises(CheckerError):
output_to_fraction('42 2')
Expand All @@ -855,8 +856,7 @@ def test_checker_percentage_parsing():
output_to_fraction('42/2/1')
with pytest.raises(CheckerError):
output_to_fraction('42/2.1')
with pytest.raises(CheckerError):
output_to_fraction('')

with pytest.raises(CheckerError):
output_to_fraction('42/')
with pytest.raises(CheckerError):
Expand Down

0 comments on commit 14f6cc3

Please sign in to comment.