nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
core/math: add basic Bézier interpolations on Float
[nit.git]
/
tests
/
test_create_more.nit
diff --git
a/tests/test_create_more.nit
b/tests/test_create_more.nit
index
b8d555a
..
e5a1ff1
100644
(file)
--- a/
tests/test_create_more.nit
+++ b/
tests/test_create_more.nit
@@
-15,26
+15,26
@@
# limitations under the License.
class A
# limitations under the License.
class A
- attr _attribute: nullable A
- attr _num: Char
+ var attribute: nullable A is noinit
+ var num: Char is noinit
- meth foo=(a: nullable A)
+ fun foo=(a: nullable A)
do
_attribute = a
end
do
_attribute = a
end
- meth foo: nullable A
+ fun foo: nullable A
do
return _attribute
end
do
return _attribute
end
- meth bar=(c: Char, a: nullable A)
+ fun bar=(c: Char, a: nullable A)
do
_num = c
_attribute = a
end
do
_num = c
_attribute = a
end
- meth bar(c: Char): nullable A
+ fun bar(c: Char): nullable A
do
if c == _num then
return _attribute
do
if c == _num then
return _attribute
@@
-43,7
+43,7
@@
class A
end
end
end
end
- redef meth to_s: String
+ redef fun to_s: String
do
var s = _num.to_s
if _attribute == null then
do
var s = _num.to_s
if _attribute == null then
@@
-81,4
+81,4
@@
a[3] = new A.init2('3', a[2].bar('1'))
a[2].bar('2') = new A
a[4] = new A.init2('4', a[2].bar('1'))
a[5] = new A.init2('5', a[2].bar('2'))
a[2].bar('2') = new A
a[4] = new A.init2('4', a[2].bar('1'))
a[5] = new A.init2('5', a[2].bar('2'))
-printn(a)
+print a