diff options
Diffstat (limited to 'test/rope_test')
| -rw-r--r-- | test/rope_test/Jamfile.v2 | 14 | ||||
| -rw-r--r-- | test/rope_test/crope.test.cpp | 10 |
2 files changed, 24 insertions, 0 deletions
diff --git a/test/rope_test/Jamfile.v2 b/test/rope_test/Jamfile.v2 new file mode 100644 index 0000000..85c867f --- /dev/null +++ b/test/rope_test/Jamfile.v2 @@ -0,0 +1,14 @@ +# +# File: Jamfile.v2 +# Author: Amlal El Mahrouss, +# Copyright 2025, Amlal El Mahrouss, Licensed under the Boost Software License +# + +project tests +: default-build debug +; + +exe crope.test.o + : crope.test.cpp + : <cxxstd>20 ; + diff --git a/test/rope_test/crope.test.cpp b/test/rope_test/crope.test.cpp index 869331f..e1885f4 100644 --- a/test/rope_test/crope.test.cpp +++ b/test/rope_test/crope.test.cpp @@ -5,3 +5,13 @@ * Copyright 2025, Amlal El Mahrouss, licensed under the Boost Software License. */ +#include <ocl/tproc/rope.hpp> + +#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 ); +} |
