We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fda05c commit 0cd94e0Copy full SHA for 0cd94e0
cyaron/graders/noipstyle.py
@@ -19,12 +19,16 @@ def noipstyle(content, std):
19
content, std,
20
'On line {} column {}, read {}, expected {}.'.
21
format(i + 1, j + 1, content_lines[i][j:j + 5],
22
- std_lines[i][j:j + 5])))
+ std_lines[i][j:j + 5]), i + 1, j + 1,
23
+ content_lines[i][j:j + 5],
24
+ std_lines[i][j:j + 5]))
25
if len(std_lines[i]) > len(content_lines[i]):
- return False, TextMismatch(content, std,
- 'Too short on line {}.'.format(i))
26
+ return False, TextMismatch(
27
+ content, std, 'Too short on line {}.'.format(i), i + 1,
28
+ j + 1, content_lines[i][j:j + 5], std_lines[i][j:j + 5])
29
if len(std_lines[i]) < len(content_lines[i]):
- 'Too long on line {}.'.format(i))
30
31
+ content, std, 'Too long on line {}.'.format(i), i + 1,
32
33
34
return True, None
0 commit comments