From 11c218683eccb6cd5166aa8dcb8a051b421b0b40 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 22 Dec 2025 08:00:32 +0100 Subject: feat: Add more tests and Jamfile. Improve allocator_op and basic_hash APIs. Signed-off-by: Amlal El Mahrouss --- test/allocator_op.test.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/allocator_op.test.cpp (limited to 'test/allocator_op.test.cpp') diff --git a/test/allocator_op.test.cpp b/test/allocator_op.test.cpp new file mode 100644 index 0000000..fa2a049 --- /dev/null +++ b/test/allocator_op.test.cpp @@ -0,0 +1,16 @@ +// File: allocator.test.cpp +// Purpose; Allocator test for OCL. +/// @brief This unit test checks if the test succeeds. +/// @author Amlal El Mahrouss + +#include + +#define BOOST_TEST_MODULE allocator_op +#include + +BOOST_AUTO_TEST_CASE( allocator_should_succeed ) +{ + auto ptr = ocl::allocator{}.construct_array<10>(); + int* arr = ptr.get(); + BOOST_TEST( arr != nullptr ); +} \ No newline at end of file -- cgit v1.2.3