summaryrefslogtreecommitdiffhomepage
path: root/test/rope_test/crope.test.cpp
blob: 4565900958bae21951889707199264124cc46465 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * 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 <ocl/tproc/rope.hpp>

#define BOOST_TEST_MODULE crope
#include <boost/test/included/unit_test.hpp>

BOOST_AUTO_TEST_CASE(allocator_should_succeed_in_empty)
{
	auto rope = ocl::tproc::crope("");
	BOOST_TEST(rope.empty() == true);
}

BOOST_AUTO_TEST_CASE(allocator_should_not_succeed_in_empty)
{
	auto rope = ocl::tproc::crope("foobar");
	// rope += ".txt";
	BOOST_TEST(rope.empty() == false);
}