nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
contracts: change the contract syntax
[nit.git]
/
tests
/
sav
/
test_json_deserialization_alt3.res
diff --git
a/tests/sav/test_json_deserialization_alt3.res
b/tests/sav/test_json_deserialization_alt3.res
index
3904578
..
ccfb302
100644
(file)
--- a/
tests/sav/test_json_deserialization_alt3.res
+++ b/
tests/sav/test_json_deserialization_alt3.res
@@
-100,19
+100,11
@@
"__kind": "obj", "__id": 0, "__class": "E",
"a": {
"__kind": "obj", "__id": 1, "__class": "Array[Object]",
"__kind": "obj", "__id": 0, "__class": "E",
"a": {
"__kind": "obj", "__id": 1, "__class": "Array[Object]",
- "__items": [
- "hello",
- 1234,
- 123.4
- ]
+ "__items": ["hello", 1234, 123.4]
},
"b": {
"__kind": "obj", "__id": 2, "__class": "Array[nullable Serializable]",
},
"b": {
"__kind": "obj", "__id": 2, "__class": "Array[nullable Serializable]",
- "__items": [
- "hella",
- 2345,
- 234.5
- ]
+ "__items": ["hella", 2345, 234.5]
}
}
}
}
@@
-120,7
+112,7
@@
<E: a: hello, 1234, 123.4; b: hella, 2345, 234.5>
# Nit:
<E: a: hello, 1234, 123.4; b: hella, 2345, 234.5>
# Nit:
-<E: 2222>
+<F: 2222>
# Json:
{
# Json:
{
@@
-129,10
+121,10
@@
}
# Back in Nit:
}
# Back in Nit:
-<E: 2222>
+<F: 2222>
# Nit:
# Nit:
-<E: 33.33>
+<F: 33.33>
# Json:
{
# Json:
{
@@
-141,7
+133,7
@@
}
# Back in Nit:
}
# Back in Nit:
-<E: 33.33>
+<F: 33.33>
# Nit:
<G: hs: -1, 0; s: one, two; hm: one. 1, two. 2; am: three. 3, four. 4>
# Nit:
<G: hs: -1, 0; s: one, two; hm: one. 1, two. 2; am: three. 3, four. 4>
@@
-151,39
+143,21
@@
"__kind": "obj", "__id": 0, "__class": "G",
"hs": {
"__kind": "obj", "__id": 1, "__class": "HashSet[Int]",
"__kind": "obj", "__id": 0, "__class": "G",
"hs": {
"__kind": "obj", "__id": 1, "__class": "HashSet[Int]",
- "__items": [
- -1,
- 0
- ]
+ "__items": [-1, 0]
},
"s": {
"__kind": "obj", "__id": 2, "__class": "ArraySet[String]",
},
"s": {
"__kind": "obj", "__id": 2, "__class": "ArraySet[String]",
- "__items": [
- "one",
- "two"
- ]
+ "__items": ["one", "two"]
},
"hm": {
"__kind": "obj", "__id": 3, "__class": "HashMap[String, Int]", "__length": 2,
},
"hm": {
"__kind": "obj", "__id": 3, "__class": "HashMap[String, Int]", "__length": 2,
- "__keys": [
- "one",
- "two"
- ],
- "__values": [
- 1,
- 2
- ]
+ "__keys": ["one", "two"],
+ "__values": [1, 2]
},
"am": {
"__kind": "obj", "__id": 4, "__class": "ArrayMap[String, String]", "__length": 2,
},
"am": {
"__kind": "obj", "__id": 4, "__class": "ArrayMap[String, String]", "__length": 2,
- "__keys": [
- "three",
- "four"
- ],
- "__values": [
- "3",
- "4"
- ]
+ "__keys": ["three", "four"],
+ "__values": ["3", "4"]
}
}
}
}