diff options
| author | Amlal <amlal@nekernel.org> | 2025-08-15 12:09:28 +0200 |
|---|---|---|
| committer | Amlal <amlal@nekernel.org> | 2025-08-15 12:09:28 +0200 |
| commit | 70945244a35e0e6d2a2e0f84ae83f31b9898a0ca (patch) | |
| tree | 2bf642b31c914a36c36f10b20ea5189ca3c47c09 /dev/lib/tests | |
| parent | 37bc0133c137cdf7fe62e79ac8208ec46096316e (diff) | |
feat: new hpptest and gtest module. Other module improvements.
Signed-off-by: Amlal <amlal@nekernel.org>
Diffstat (limited to 'dev/lib/tests')
| -rw-r--r-- | dev/lib/tests/gtest.hpp | 8 | ||||
| -rw-r--r-- | dev/lib/tests/hpptest.hpp | 22 |
2 files changed, 30 insertions, 0 deletions
diff --git a/dev/lib/tests/gtest.hpp b/dev/lib/tests/gtest.hpp new file mode 100644 index 0000000..14474c0 --- /dev/null +++ b/dev/lib/tests/gtest.hpp @@ -0,0 +1,8 @@ +/* + * File: tests/gtest.hpp + * Purpose: Google Test wrapper for the SOCL library. + * Author: Amlal El Mahrouss (founder@snu.systems) + * Copyright 2025, Amlal El Mahrouss and SNU Systems Corp. + */ + +#include <gtest/gtest.h> diff --git a/dev/lib/tests/hpptest.hpp b/dev/lib/tests/hpptest.hpp new file mode 100644 index 0000000..4c99ce6 --- /dev/null +++ b/dev/lib/tests/hpptest.hpp @@ -0,0 +1,22 @@ +/* + * File: tests/hpptest.hpp + * Purpose: HPP Test wrapper for the SOCL library. + * Author: Amlal El Mahrouss (founder@snu.systems) + * Copyright 2025, Amlal El Mahrouss and SNU Systems Corp. + */ + +#pragma once + + +#ifdef SOCL_HPPTEST +namespace snu::hpptest +{ + typedef bool condition_type; + + template <condition_type expr = true> + consteval inline void must_pass() + { + SOCL_HPPTEST_ASSERT(expr); + } +} // namespace snu::hpptest +#endif |
