summaryrefslogtreecommitdiffhomepage
path: root/test/allocator_op.test.cpp
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-22 08:00:32 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-22 08:01:51 +0100
commit11c218683eccb6cd5166aa8dcb8a051b421b0b40 (patch)
tree9bc4c76b54fbdcb54f53540301588ba46aa32c66 /test/allocator_op.test.cpp
parentcd5f71ead79201619a651a6467dd86ab72b93e23 (diff)
feat: Add more tests and Jamfile. Improve allocator_op and basic_hash APIs.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'test/allocator_op.test.cpp')
-rw-r--r--test/allocator_op.test.cpp16
1 files changed, 16 insertions, 0 deletions
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 <ocl/allocator_op.hpp>
+
+#define BOOST_TEST_MODULE allocator_op
+#include <boost/test/included/unit_test.hpp>
+
+BOOST_AUTO_TEST_CASE( allocator_should_succeed )
+{
+ auto ptr = ocl::allocator<int>{}.construct_array<10>();
+ int* arr = ptr.get();
+ BOOST_TEST( arr != nullptr );
+} \ No newline at end of file