tests/sav: Update tests results
[nit.git] / tests / sav / test_json_deserialization_alt2.res
1 # Nit:
2 <A: true a 0.123 1234 asdf false p4ssw0rd>
3
4 # Json:
5 {"b":true,"c":"a","f":0.123,"i":1234,"serialization_specific_name":"asdf","n":null}
6
7 # Back in Nit:
8 <A: true a 0.123 1234 asdf false p4ssw0rd>
9
10 # Nit:
11 <B: <A: false b 123.123 2345 hjkl true p4ssw0rd> 1111 qwer>
12
13 # Json:
14 {"b":false,"c":"b","f":123.123,"i":2345,"serialization_specific_name":"hjkl","n":12,"ii":1111,"ss":"qwer"}
15
16 # Back in Nit:
17 <B: <A: false b 123.123 2345 hjkl true p4ssw0rd> 1111 qwer>
18
19 # Nit:
20 <C: <A: true a 0.123 1234 asdf false p4ssw0rd> <B: <A: false b 123.123 2345 hjkl true p4ssw0rd> 1111 qwer>>
21
22 # Json:
23 {"a":{"b":true,"c":"a","f":0.123,"i":1234,"serialization_specific_name":"asdf","n":null},"b":{"b":false,"c":"b","f":123.123,"i":2345,"serialization_specific_name":"hjkl","n":12,"ii":1111,"ss":"qwer"},"aa":{"b":true,"c":"a","f":0.123,"i":1234,"serialization_specific_name":"asdf","n":null}}
24
25 # Back in Nit:
26 <C: <A: true a 0.123 1234 asdf false p4ssw0rd> <B: <A: false b 123.123 2345 hjkl true p4ssw0rd> 1111 qwer>>
27
28 Serialization warning: Cycle detected in serialized object, replacing reference with 'null'.
29 # Nit:
30 <D: <B: <A: false b 123.123 2345 new line ->
31 <- false p4ssw0rd> 1111         f"\r\/> true>
32
33 # Json:
34 {"b":false,"c":"b","f":123.123,"i":2345,"serialization_specific_name":"new line ->\n<-","n":null,"ii":1111,"ss":"\tf\"\r\\/","d":null}
35
36 # Back in Nit:
37 <D: <B: <A: false b 123.123 2345 new line ->
38 <- false p4ssw0rd> 1111         f"\r\/> false>
39
40 # Nit:
41 <E: a: hello, 1234, 123.4; b: hella, 2345, 234.5>
42
43 # Json:
44 {"a":["hello",1234,123.4],"b":["hella",2345,234.5]}
45
46 # Back in Nit:
47 <E: a: hello, 1234, 123.4; b: hella, 2345, 234.5>
48
49 # Nit:
50 <F: 2222>
51
52 # Json:
53 {"n":2222}
54
55 # Back in Nit:
56 <F: 2222>
57
58 # Nit:
59 <F: 33.33>
60
61 # Json:
62 {"n":33.33}
63
64 # Back in Nit:
65 <F: 33.33>
66
67 # Nit:
68 <G: hs: -1, 0; s: one, two; hm: one. 1, two. 2; am: three. 3, four. 4>
69
70 # Json:
71 {"hs":[-1,0],"s":["one","two"],"hm":{"one":1,"two":2},"am":{"three":"3","four":"4"}}
72
73 # Back in Nit:
74 <G: hs: -1, 0; s: ; hm: one. 1, two. 2; am: three. 3, four. 4>
75
76 Deserialization Error: Doesn't know how to deserialize class "Set[String]"
77 Deserialization Error: Wrong type on `G::s` expected `Set[String]`, got `null`