refund: force last line break and update expected errors
authorAlexis Laferrière <alexis.laf@xymus.net>
Thu, 15 Sep 2016 12:52:22 +0000 (08:52 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Mon, 19 Sep 2016 14:50:36 +0000 (10:50 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

contrib/refund/src/refund_json.nit
contrib/refund/tests/res/json_error1.res
contrib/refund/tests/res/json_error3.res

index 130ad2a..7c5e4d0 100644 (file)
@@ -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
 
index 958aa8d..e7eb308 100644 (file)
@@ -1,3 +1,3 @@
 {
-       "message": "Wrong input file (Unexpected Eof; is acceptable instead: value)"
+       "message": "Wrong input file (Empty JSON)"
 }
index d35b982..83de0af 100644 (file)
@@ -1,3 +1,3 @@
 {
-       "message": "Wrong input file (Unexpected Eof; is acceptable instead: members, pair)"
+       "message": "Wrong input file (Malformed JSON object)"
 }