Skip to content

Commit

Permalink
Merge pull request #475 from dodona-edu/fix/output
Browse files Browse the repository at this point in the history
Don't strip leading whitespace
  • Loading branch information
niknetniko authored Nov 30, 2023
2 parents 6a891b0 + 433a1c5 commit 20c2fdf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tested/dsl/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@
"type" : "boolean"
},
"ignoreWhitespace" : {
"description" : "Ignore leading and trailing whitespace",
"description" : "Ignore trailing whitespace",
"type" : "boolean"
},
"roundTo" : {
Expand Down
2 changes: 1 addition & 1 deletion tested/dsl/schema_draft7.json
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@
"type" : "boolean"
},
"ignoreWhitespace" : {
"description" : "Ignore leading and trailing whitespace",
"description" : "Ignore trailing whitespace",
"type" : "boolean"
},
"roundTo" : {
Expand Down
2 changes: 1 addition & 1 deletion tested/oracles/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def compare_text(options: dict[str, Any], expected: str, actual: str) -> OracleR
expected_eval, actual_eval = str(expected), str(actual)

if options["ignoreWhitespace"]:
expected_eval, actual_eval = expected_eval.strip(), actual_eval.strip()
expected_eval, actual_eval = expected_eval.rstrip(), actual_eval.rstrip()

if options["caseInsensitive"]:
expected_eval, actual_eval = expected_eval.lower(), actual_eval.lower()
Expand Down

0 comments on commit 20c2fdf

Please sign in to comment.