nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge: Apply serialization in calculator, a_star, more_collections, Couple and Container
[nit.git]
/
tests
/
test_serialization.nit
diff --git
a/tests/test_serialization.nit
b/tests/test_serialization.nit
index
59aac77
..
5517cff
100644
(file)
--- a/
tests/test_serialization.nit
+++ b/
tests/test_serialization.nit
@@
-15,7
+15,7
@@
# limitations under the License.
import serialization
# limitations under the License.
import serialization
-import json_serialization
+import json::serialization
# Simple class
class A
# Simple class
class A
@@
-95,8
+95,9
@@
var d = new D(false, 'b', 123.123, 2345, "new line ->\n<-", null, 1111, "\t\f\"\
d.d = d
for o in new Array[Serializable].with_items(a, b, c, d) do
d.d = d
for o in new Array[Serializable].with_items(a, b, c, d) do
- var stream = new StringOStream
+ var stream = new StringWriter
var serializer = new JsonSerializer(stream)
var serializer = new JsonSerializer(stream)
+ #alt1#serializer.plain_json = true
serializer.serialize(o)
print "# Nit:\n{o}\n"
serializer.serialize(o)
print "# Nit:\n{o}\n"