summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/rope_test/crope.pred.test.cpp9
-rw-r--r--test/rope_test/crope.test.cpp2
2 files changed, 4 insertions, 7 deletions
diff --git a/test/rope_test/crope.pred.test.cpp b/test/rope_test/crope.pred.test.cpp
index 1c0b18f..0ec71e3 100644
--- a/test/rope_test/crope.pred.test.cpp
+++ b/test/rope_test/crope.pred.test.cpp
@@ -13,17 +13,16 @@
BOOST_AUTO_TEST_CASE(rope_should_succeed_in_empty_pred)
{
auto rope = ocl::tproc::crope("");
- auto it = ocl::tproc::rope::find(rope.cbegin(), rope.cend(),
- ocl::tproc::rope::exact_pred("foo"));
+ auto it = ocl::tproc::rope::exact_pred{"foo"}(rope.cbegin(), rope.cend());
+
BOOST_TEST(it == rope.cend());
}
BOOST_AUTO_TEST_CASE(rope_should_not_succeed_in_empty_pred)
{
auto rope = ocl::tproc::crope("foobar");
-
// find the leaf with the exact value 'foo'
- auto it = ocl::tproc::rope::find(rope.cbegin(), rope.cend(),
- ocl::tproc::rope::starts_with_pred("foo"));
+ auto it = ocl::tproc::rope::starts_with_pred{"foo"}(rope.cbegin(), rope.cend());
+
BOOST_TEST(it != rope.cend());
}
diff --git a/test/rope_test/crope.test.cpp b/test/rope_test/crope.test.cpp
index 8c2b302..4565900 100644
--- a/test/rope_test/crope.test.cpp
+++ b/test/rope_test/crope.test.cpp
@@ -13,7 +13,6 @@
BOOST_AUTO_TEST_CASE(allocator_should_succeed_in_empty)
{
auto rope = ocl::tproc::crope("");
-
BOOST_TEST(rope.empty() == true);
}
@@ -21,6 +20,5 @@ BOOST_AUTO_TEST_CASE(allocator_should_not_succeed_in_empty)
{
auto rope = ocl::tproc::crope("foobar");
// rope += ".txt";
-
BOOST_TEST(rope.empty() == false);
}