From: Alexis Laferrière Date: Thu, 15 Sep 2016 12:52:22 +0000 (-0400) Subject: refund: force last line break and update expected errors X-Git-Url: http://nitlanguage.org refund: force last line break and update expected errors Signed-off-by: Alexis Laferrière --- diff --git a/contrib/refund/src/refund_json.nit b/contrib/refund/src/refund_json.nit index 130ad2a..7c5e4d0 100644 --- a/contrib/refund/src/refund_json.nit +++ b/contrib/refund/src/refund_json.nit @@ -89,6 +89,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 diff --git a/contrib/refund/tests/res/json_error1.res b/contrib/refund/tests/res/json_error1.res index 958aa8d..e7eb308 100644 --- a/contrib/refund/tests/res/json_error1.res +++ b/contrib/refund/tests/res/json_error1.res @@ -1,3 +1,3 @@ { - "message": "Wrong input file (Unexpected Eof; is acceptable instead: value)" + "message": "Wrong input file (Empty JSON)" } diff --git a/contrib/refund/tests/res/json_error3.res b/contrib/refund/tests/res/json_error3.res index d35b982..83de0af 100644 --- a/contrib/refund/tests/res/json_error3.res +++ b/contrib/refund/tests/res/json_error3.res @@ -1,3 +1,3 @@ { - "message": "Wrong input file (Unexpected Eof; is acceptable instead: members, pair)" + "message": "Wrong input file (Malformed JSON object)" }