template pedestal (#71)

template the type of m_sum and m_sum2 in pedestal
This commit is contained in:
Bechir Braham
2024-05-27 15:24:26 +02:00
committed by GitHub
parent fed362e843
commit 1dd361a343
5 changed files with 76 additions and 67 deletions

View File

@ -1,9 +1,9 @@
#include "test_config.hpp"
#include <catch2/catch_test_macros.hpp>
#include <climits>
#include <filesystem>
#include <fstream>
#include "test_config.hpp"
TEST_CASE("Test suite can find data assets") {
auto fpath = test_data_path() / "numpy" / "test_numpy_file.npy";
REQUIRE(std::filesystem::exists(fpath));
@ -13,4 +13,9 @@ TEST_CASE("Test suite can open data assets") {
auto fpath = test_data_path() / "numpy" / "test_numpy_file.npy";
auto f = std::ifstream(fpath, std::ios::binary);
REQUIRE(f.is_open());
}
TEST_CASE("Test float32 and char8") {
REQUIRE(sizeof(float) == 4);
REQUIRE(CHAR_BIT == 8);
}