Merge: Nitsmell : Adding new code smells and print console updated
[nit.git] / tests / test_json_deserialization.nit
index 6a06550..6a4dfdb 100644 (file)
@@ -13,7 +13,7 @@
 # limitations under the License.
 
 import test_deserialization
-import json::serialization
+import json
 #alt1# import test_deserialization_serial
 #alt3# import test_deserialization_serial
 
@@ -40,4 +40,5 @@ for o in tests do
        print "# Nit:\n{o}\n"
        print "# Json:\n{stream}\n"
        print "# Back in Nit:\n{deserialized or else "null"}\n"#alt2##alt4#
+       if deserializer.errors.not_empty then print deserializer.errors.join("\n")#alt2##alt4#
 end