From dbfbab069a35f3a61932915d35b3895e784b05de Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 12 Mar 2026 06:03:28 +0100 Subject: [CHORE] Add more unit tests for TProc. Signed-off-by: Amlal El Mahrouss --- test/rope_test/crope.pred2.test.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'test/rope_test/crope.pred2.test.cpp') diff --git a/test/rope_test/crope.pred2.test.cpp b/test/rope_test/crope.pred2.test.cpp index c2f5aca..9b9b333 100644 --- a/test/rope_test/crope.pred2.test.cpp +++ b/test/rope_test/crope.pred2.test.cpp @@ -8,7 +8,7 @@ #include #include -#define BOOST_TEST_MODULE crope_pred +#define BOOST_TEST_MODULE crope_pred2 #include #ifndef STANDALONE @@ -17,7 +17,13 @@ using namespace ocl; using namespace boost; #endif -BOOST_AUTO_TEST_CASE(rope_should_succeed_in_find_pred) +BOOST_AUTO_TEST_CASE(rope_should_succeed_in_concat) { - + auto rope = tproc::crope("Exact"); + auto next_rope = std::make_unique(" Sentence"); + auto rope_2 = rope.concat(next_rope.get()); + + std::cout << "Result: " << rope << std::endl; + + BOOST_TEST(rope.to_string() == "Exact Sentence"); } -- cgit v1.2.3