diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-25 12:57:06 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-25 12:57:06 +0100 |
| commit | a3b23dcaabb53b8770c6ac8cfc33c6002b815589 (patch) | |
| tree | 2e6b0ee229c39686947938162b446989928bdf91 /test | |
| parent | 543f288e808b575f97efd56f2d14c495b49459f3 (diff) | |
feat: add clang-format, and improved public API.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'test')
| -rw-r--r-- | test/rope_test/crope.test.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/test/rope_test/crope.test.cpp b/test/rope_test/crope.test.cpp index f454e12..061da98 100644 --- a/test/rope_test/crope.test.cpp +++ b/test/rope_test/crope.test.cpp @@ -10,7 +10,14 @@ #define BOOST_TEST_MODULE crope #include <boost/test/included/unit_test.hpp> -BOOST_AUTO_TEST_CASE(allocator_should_succeed) { - auto rope = ocl::crope("foo"); - BOOST_TEST(rope.empty() == false); +BOOST_AUTO_TEST_CASE(allocator_should_succeed_in_empty) +{ + auto rope = ocl::crope(""); + BOOST_TEST(rope.empty() == true); +} + +BOOST_AUTO_TEST_CASE(allocator_should_not_succeed_in_empty) +{ + auto rope = ocl::crope("foobar"); + BOOST_TEST(rope.empty() == false); } |
