Skip to content

Commit

Permalink
refund: force last line break and update expected errors
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis Laferrière <[email protected]>
  • Loading branch information
xymus committed Sep 15, 2016
1 parent f401138 commit 444fc9d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions contrib/refund/src/refund_json.nit
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ redef class RefundProcessor
fun write_output(str: String, file: String) do
var ofs = new FileWriter.open(file)
ofs.write(str)
ofs.write("\n")
ofs.close
end

Expand Down
2 changes: 1 addition & 1 deletion contrib/refund/tests/res/json_error1.res
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"message": "Wrong input file (Unexpected Eof; is acceptable instead: value)"
"message": "Wrong input file (Empty JSON)"
}
2 changes: 1 addition & 1 deletion contrib/refund/tests/res/json_error3.res
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"message": "Wrong input file (Unexpected Eof; is acceptable instead: members, pair)"
"message": "Wrong input file (Malformed JSON object)"
}

0 comments on commit 444fc9d

Please sign in to comment.