summaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-30 07:09:34 -0500
committerAmlal El Mahrouss <amlal@nekernel.org>2025-11-30 07:09:34 -0500
commitf8f05ded6a1da18052a6154393710d55ff6ce8bd (patch)
tree346acdde979cbc455146a5e5cbba3453412e4280 /tests
parent82772695a621f7f07ce654f676d14ca70b908e63 (diff)
chore: new improvements over the previous impelemntations of allocator_op.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/chunk_string/CMakeLists.txt25
-rw-r--r--tests/chunk_string/chunk_test.cc22
2 files changed, 0 insertions, 47 deletions
diff --git a/tests/chunk_string/CMakeLists.txt b/tests/chunk_string/CMakeLists.txt
deleted file mode 100644
index 53a9add..0000000
--- a/tests/chunk_string/CMakeLists.txt
+++ /dev/null
@@ -1,25 +0,0 @@
-cmake_minimum_required(VERSION 3.27)
-project(BasicChunkUsage LANGUAGES CXX)
-
-# find_package(Boost REQUIRED COMPONENTS container)
-
-include(FetchContent)
-FetchContent_Declare(
- googletest
- URL https://github.com/google/googletest/archive/refs/tags/v1.14.0.zip
-)
-
-# For Windows: Prevent overriding the parent project's compiler/linker settings
-set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
-FetchContent_MakeAvailable(googletest)
-
-enable_testing()
-
-add_executable(BasicChunkUsage chunk_test.cc)
-target_link_libraries(BasicChunkUsage PRIVATE gtest_main)
-
-set_property(TARGET BasicChunkUsage PROPERTY CXX_STANDARD 20)
-target_include_directories(BasicChunkUsage PUBLIC ../../include/ocl)
-
-include(GoogleTest)
-gtest_discover_tests(BasicChunkUsage)
diff --git a/tests/chunk_string/chunk_test.cc b/tests/chunk_string/chunk_test.cc
deleted file mode 100644
index 37f5cb1..0000000
--- a/tests/chunk_string/chunk_test.cc
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * File: tests/chunk_test.cc
- * Purpose: Chunk unit tests in C++
- * Author: Amlal El Mahrouss (amlal@nekernel.org)
- * Copyright 2025, Amlal El Mahrouss, licensed under the Boost Software License.
- */
-
-#include <io/print.hpp>
-#include <gtest/gtest.h>
-#include <core/chunk_string.hpp>
-
-const char* test_string = "HELLO, WORLD!\r\n";
-const auto iterations = 1024000;
-const auto limit = 30;
-
-TEST(ChunkTest, BasicChunkUsage)
-{
- ocl::basic_chunk_string<char, iterations> optimized;
- optimized += test_string;
-
- EXPECT_TRUE(optimized.str() == test_string);
-}