diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-02-26 14:32:38 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-02-26 14:32:38 +0100 |
| commit | 8346ccbff5d2f99380a6c038d0e076c9694ce7ba (patch) | |
| tree | 390a7067c86bd560c12e3ce94ca0e280b1fe1fc0 | |
| parent | c0a8e073dc4efbcd5a0f386647a25805ecbf927c (diff) | |
chore: update allocator unit testing.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
| -rw-r--r-- | test/allocator_op.test.cpp | 3 | ||||
| -rw-r--r-- | test/option.test.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/test/allocator_op.test.cpp b/test/allocator_op.test.cpp index 5979c7d..9916dfa 100644 --- a/test/allocator_op.test.cpp +++ b/test/allocator_op.test.cpp @@ -1,4 +1,4 @@ -// Copyright 2025, Amlal El Mahrouss (amlal@nekernel.org) +// Copyright 2025-2026, Amlal El Mahrouss (amlal@nekernel.org) // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Official repository: https://github.com/ocl-org/core @@ -15,6 +15,7 @@ BOOST_AUTO_TEST_CASE(allocator_should_succeed) auto ptr = ocl::allocator<int>{}.construct_array<10>(); int* arr = ptr.get(); BOOST_TEST(arr != nullptr); + for (auto i{0ul}; i < 10; ++i) { *(arr + i) = 10; diff --git a/test/option.test.cpp b/test/option.test.cpp index 1869d24..c1bf5f8 100644 --- a/test/option.test.cpp +++ b/test/option.test.cpp @@ -1,4 +1,4 @@ -// Copyright 2025, Amlal El Mahrouss (amlal@nekernel.org) +// Copyright 2025-2026, Amlal El Mahrouss (amlal@nekernel.org) // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Official repository: https://github.com/ocl-org/core |
