/* * File: crope.test.cpp * Purpose: Char rope test. * Author: Amlal El Mahrouss (amlal@nekernel.org) * Copyright 2025, Amlal El Mahrouss, licensed under the Boost Software License. */ #include #define BOOST_TEST_MODULE crope #include #ifndef STANDALONE using namespace ocl; #else using namespace boost; #endif BOOST_AUTO_TEST_CASE(allocator_should_succeed_in_empty) { auto rope = tproc::crope(""); BOOST_TEST(rope.empty() == true); } BOOST_AUTO_TEST_CASE(allocator_should_not_succeed_in_empty) { auto rope = tproc::crope("foobar"); BOOST_TEST(rope.empty() == false); }