Merge: compiler: compile_dir can be anywhere
[nit.git] / tests / test_ropes.nit
index 3040d12..2d03f50 100644 (file)
@@ -12,6 +12,9 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+#alt1 import splay_ropes
+#alt2 import bufferized_ropes
+
 var x :String = new RopeString
 
 x = x + "NODE"
@@ -64,12 +67,11 @@ print ss
 
 var atb = new Array[String]
 
-var s = new RopeString
-s = s.prepend(".types").as(RopeString)
-s = s.prepend("./examples/hello_world.nit".substring(11,11)).as(RopeString)
-s = s.append(".").as(RopeString)
-s = s.append("1").as(RopeString)
-s = s.append(".o").as(RopeString)
+var s: String = new RopeString
+s = s + "./examples/hello_world.nit".substring(11,11) + ".types"
+s += "."
+s += "1"
+s += ".o"
 
 print s