diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-03-12 06:06:00 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-03-12 06:06:56 +0100 |
| commit | ab306b056d33874ddf16020e16a59ab5f34043cb (patch) | |
| tree | 4ee734390f1854c0cdf7fa3c298ebfd8c4f75325 | |
| parent | dbfbab069a35f3a61932915d35b3895e784b05de (diff) | |
[CHORE] Fix unit test rope_should_succeed_in_concat for TProc.more-unit-tests
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
| -rw-r--r-- | test/rope_test/crope.pred.test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/rope_test/crope.pred.test.cpp b/test/rope_test/crope.pred.test.cpp index d80e9ba..5505462 100644 --- a/test/rope_test/crope.pred.test.cpp +++ b/test/rope_test/crope.pred.test.cpp @@ -33,13 +33,13 @@ BOOST_AUTO_TEST_CASE(rope_should_succeed_in_at) BOOST_ASSERT(rope.to_string() == "Exact Sentence"); } -BOOST_AUTO_TEST_CASE(rope_should_succeed_in_starts_with) +BOOST_AUTO_TEST_CASE(rope_should_succeed_in_concat) { auto rope = tproc::crope("The Quick Brown Fox Jumps Over The Lazy Dog"); std::unique_ptr<tproc::crope> new_elem = std::make_unique<tproc::crope>(", and Jumps again."); - std::unique_ptr<tproc::crope> ret_elem(rope.concat(new_elem.get())); + rope.concat(new_elem.get()); - BOOST_TEST((*ret_elem == "The Quick Brown Fox Jumps Over The Lazy Dog, and Jumps again.")); - BOOST_TEST((rope == ", and Jumps again.")); + BOOST_TEST((rope.to_string() == "The Quick Brown Fox Jumps Over The Lazy Dog, and Jumps again.")); + BOOST_TEST((new_elem->to_string() == ", and Jumps again.")); std::cout << "Result: " << rope << std::endl; } |
