tests/sav: Update tests results
[nit.git] / tests / sav / test_json_deserialization_plain.res
1 # JSON: {"__kind": "obj", "__id": 0, "__class": "MyClass", "i": 123, "s": "hello", "f": 123.456, "a": ["one", "two"], "o": null}
2 # Nit: <MyClass i:123 s:hello f:123.456 a:[one, two] o:<null>>
3
4 # JSON: {"__class": "MyClass", "i": 123, "s": "hello", "f": 123.456, "a": ["one", "two"], "o": null}
5 # Nit: <MyClass i:123 s:hello f:123.456 a:[one, two] o:<null>>
6
7 # JSON: {"s": "hello", "o": null, "i": 123, "f": 123.456, "__class": "MyClass", "a": ["one", "two"]}
8 # Nit: <MyClass i:123 s:hello f:123.456 a:[one, two] o:<null>>
9
10 # JSON: {"__class": "MyClass", "i": 123, "s": "hello", "f": 123.456, "o": null, "a": ["one", "two"], "Some random attribute": 777}
11 # Nit: <MyClass i:123 s:hello f:123.456 a:[one, two] o:<null>>
12
13 # JSON: {"__class": "MyClass", "i": 123, "s": "hello", "f": 123.456, "a": ["one", "two"]}
14 # Nit: <MyClass i:123 s:hello f:123.456 a:[one, two] o:<null>>
15
16 # JSON: {"__class": "MyClass", "i": 123, "s": "hello", "f": 123.456, "a": ["one", "two"], "o":
17         {"__class": "MyClass", "i": 456, "s": "world", "f": 654.321, "a": ["1", "2"], "o": null}}
18 # Nit: <MyClass i:123 s:hello f:123.456 a:[one, two] o:<MyClass i:456 s:world f:654.321 a:[1, 2] o:<null>>>
19
20 # JSON: {"i": 123, "s": "hello", "f": 123.456, "a": ["one", "two"], "o": null}
21 # Errors: 'Deserialization Error: JSON object declaration does not declare a `__class`.'
22 # Nit: <JsonObject i:123, s:hello, f:123.456, a:[one,two], o:<null>>
23
24 # JSON: {"__class": "MyClass", "i": 123, "s": "hello", "f": 123.456, "a": ["one", "two"], "o": "Not the right type"}
25 # Errors: 'Deserialization Error: Wrong type on `MyClass::o` expected `nullable MyClass`, got `ASCIIFlatString`'
26 # Nit: <MyClass i:123 s:hello f:123.456 a:[one, two] o:<null>>
27
28 # JSON: not valid json
29 # Errors: 'Error: bad JSON entity'
30 # Nit: null
31