lib: Split collections into readable and writable
[nit.git] / tests / test_create_more.nit
index 1b0fd1c..c1a0252 100644 (file)
@@ -47,9 +47,9 @@ class A
        do
                var s = _num.to_s
                if _attribute == null then
-                       s.add('\n')
+                       s += "\n"
                else
-                       s.append(_attribute.to_s)
+                       s += _attribute.to_s
                end
                return s
        end