summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/rope_test/crope.pred.test.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/rope_test/crope.pred.test.cpp b/test/rope_test/crope.pred.test.cpp
index b1cc59d..c2906f2 100644
--- a/test/rope_test/crope.pred.test.cpp
+++ b/test/rope_test/crope.pred.test.cpp
@@ -35,7 +35,10 @@ BOOST_AUTO_TEST_CASE(rope_should_succeed_in_starts_with)
ocl::io::println(it_end->data());
ocl::io::println(it->data());
- auto new_elem = ocl::tproc::crope(", and Jumps again.");
+ auto new_elem = new ocl::tproc::crope(", and Jumps again.");
+ auto ret_elem = rope.concat(new_elem);
- ocl::io::println(rope.concat(&new_elem)->data());
+ ocl::io::println(ret_elem->data());
+
+ delete new_elem;
}