summaryrefslogtreecommitdiffhomepage
path: root/test/rope_test/crope.test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/rope_test/crope.test.cpp')
-rw-r--r--test/rope_test/crope.test.cpp13
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);
}