Merge remote-tracking branch 'upstream/master' into init_auto
[nit.git] / tests / sav / nitce / test_json_deserialization_alt3.res
index b269caf..82371a6 100644 (file)
        "__kind": "obj", "__id": 0, "__class": "E",
        "a": {
                "__kind": "obj", "__id": 1, "__class": "Array",
-               "__items": [
-                       "hello",
-                       1234,
-                       123.4
-               ]
+               "__items": ["hello", 1234, 123.4]
        },
        "b": {
                "__kind": "obj", "__id": 2, "__class": "Array",
-               "__items": [
-                       "hella",
-                       2345,
-                       234.5
-               ]
+               "__items": ["hella", 2345, 234.5]
        }
 }
 
 # Back in Nit:
 <E: a: hello, 1234, 123.4; b: hella, 2345, 234.5>
 
+Deserialization Error: Doesn't know how to deserialize class "Array"
+Deserialization Error: Wrong type on `E::a` expected `Array[Object]`, got `null`
+Deserialization Error: Doesn't know how to deserialize class "Array"
+Deserialization Error: Wrong type on `E::b` expected `Array[nullable Serializable]`, got `null`
 # Nit:
-<E: 2222>
+<F: 2222>
 
 # Json:
 {
 # Back in Nit:
 null
 
+Deserialization Error: Doesn't know how to deserialize class "F"
 # Nit:
-<E: 33.33>
+<F: 33.33>
 
 # Json:
 {
@@ -143,6 +140,7 @@ null
 # Back in Nit:
 null
 
+Deserialization Error: Doesn't know how to deserialize class "F"
 # Nit:
 <G: hs: -1, 0; s: one, two; hm: one. 1, two. 2; am: three. 3, four. 4>
 
@@ -151,42 +149,32 @@ null
        "__kind": "obj", "__id": 0, "__class": "G",
        "hs": {
                "__kind": "obj", "__id": 1, "__class": "HashSet",
-               "__items": [
-                       -1,
-                       0
-               ]
+               "__items": [-1, 0]
        },
        "s": {
                "__kind": "obj", "__id": 2, "__class": "ArraySet",
-               "__items": [
-                       "one",
-                       "two"
-               ]
+               "__items": ["one", "two"]
        },
        "hm": {
                "__kind": "obj", "__id": 3, "__class": "HashMap", "__length": 2,
-               "__keys": [
-                       "one",
-                       "two"
-               ],
-               "__values": [
-                       1,
-                       2
-               ]
+               "__keys": ["one", "two"],
+               "__values": [1, 2]
        },
        "am": {
                "__kind": "obj", "__id": 4, "__class": "ArrayMap", "__length": 2,
-               "__keys": [
-                       "three",
-                       "four"
-               ],
-               "__values": [
-                       "3",
-                       "4"
-               ]
+               "__keys": ["three", "four"],
+               "__values": ["3", "4"]
        }
 }
 
 # Back in Nit:
 <G: hs: ; s: ; hm: ; am: >
 
+Deserialization Error: Doesn't know how to deserialize class "HashSet"
+Deserialization Error: Wrong type on `G::hs` expected `HashSet[Int]`, got `null`
+Deserialization Error: Doesn't know how to deserialize class "ArraySet"
+Deserialization Error: Wrong type on `G::s` expected `Set[String]`, got `null`
+Deserialization Error: Doesn't know how to deserialize class "HashMap"
+Deserialization Error: Wrong type on `G::hm` expected `HashMap[String, Int]`, got `null`
+Deserialization Error: Doesn't know how to deserialize class "ArrayMap"
+Deserialization Error: Wrong type on `G::am` expected `ArrayMap[String, String]`, got `null`