nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ef4762
)
tests: test `noserialize` with the `lazy` annotation
author
Alexis Laferrière
<alexis.laf@xymus.net>
Fri, 29 May 2015 00:51:56 +0000
(20:51 -0400)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Fri, 29 May 2015 20:46:03 +0000
(16:46 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
tests/test_deserialization.nit
patch
|
blob
|
history
diff --git
a/tests/test_deserialization.nit
b/tests/test_deserialization.nit
index
1360bf2
..
deb8997
100644
(file)
--- a/
tests/test_deserialization.nit
+++ b/
tests/test_deserialization.nit
@@
-26,6
+26,7
@@
class A
var i = 123
var s = "asdf"
var n: nullable Int
+ var password = "p4ssw0rd" is lazy, noserialize
init(b: Bool, c: Char, f: Float, i: Int, s: String, n: nullable Int)
do
@@
-36,7
+37,7
@@
class A
self.s = s
end
- redef fun to_s do return "<A: {b} {c} {f} {i} {s} {n != null}>"
+ redef fun to_s do return "<A: {b} {c} {f} {i} {s} {n != null} {password}>"
end
# Sub-class of A