diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-27 12:31:13 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-27 12:32:02 +0100 |
| commit | 0d6d23ebc03a70c5a4e3c0f20fd402bfc48d1974 (patch) | |
| tree | 8ea8bb668dcb21c70299da70a4e5576639e6aa67 /test | |
| parent | cd42a4117b4260f9521b68c1cadabfadd9a61049 (diff) | |
feat: Improved API and better unit tests.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'test')
| -rw-r--r-- | test/rope_test/crope.pred.test.cpp | 5 | ||||
| -rw-r--r-- | test/rope_test/crope.test.cpp | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/test/rope_test/crope.pred.test.cpp b/test/rope_test/crope.pred.test.cpp index 0bf5fbc..ba43331 100644 --- a/test/rope_test/crope.pred.test.cpp +++ b/test/rope_test/crope.pred.test.cpp @@ -13,8 +13,7 @@ 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::find(rope.cbegin(), rope.cend(), ocl::tproc::rope::exact_pred("foo")); BOOST_TEST(it == rope.cend()); } @@ -22,7 +21,7 @@ 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")); - BOOST_TEST(it != rope.cend()); } diff --git a/test/rope_test/crope.test.cpp b/test/rope_test/crope.test.cpp index 9b9b9eb..8c2b302 100644 --- a/test/rope_test/crope.test.cpp +++ b/test/rope_test/crope.test.cpp @@ -13,7 +13,7 @@ BOOST_AUTO_TEST_CASE(allocator_should_succeed_in_empty) { auto rope = ocl::tproc::crope(""); - + BOOST_TEST(rope.empty() == true); } |
