diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-01-03 23:56:50 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-01-03 23:57:15 +0100 |
| commit | a689e3d805714408fab28f27b43f659a04a514d4 (patch) | |
| tree | 04868789a9a9e7b10dd5a7ac993f34ee1aa9f2c3 /test/rope_test/crope.pred.test.cpp | |
| parent | 0fa7595b3f08622fdbb445df2cd2a1e9f3cf5929 (diff) | |
feat: Fix implementation and added more test cases.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'test/rope_test/crope.pred.test.cpp')
| -rw-r--r-- | test/rope_test/crope.pred.test.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/rope_test/crope.pred.test.cpp b/test/rope_test/crope.pred.test.cpp index c2906f2..0d47553 100644 --- a/test/rope_test/crope.pred.test.cpp +++ b/test/rope_test/crope.pred.test.cpp @@ -20,6 +20,14 @@ BOOST_AUTO_TEST_CASE(rope_should_succeed_in_find_pred) ocl::io::println(it->data()); } +BOOST_AUTO_TEST_CASE(rope_should_succeed_in_at) +{ + auto rope = ocl::tproc::crope("Exact Sentence"); + auto it = std::move(rope.substr(rope.at("Exact"), rope.size())); + + ocl::io::println(it.data()); +} + BOOST_AUTO_TEST_CASE(rope_should_succeed_in_starts_with) { auto rope = ocl::tproc::crope("The Quick Brown Fox Jumps Over The Lazy Dog"); |
