aare/tests/test.cpp
Bechir Braham bf216f55c6
reading raw moench files (PR#3) (#32)
* reading moench and raw files

* read mythen3 files

* read multiport mythen3

* delete .vscode and .env.dev

---------

Co-authored-by: Bechir <bechir.brahem420@gmail.com>
2024-03-27 08:58:43 +01:00

16 lines
470 B
C++

#include <catch2/catch_test_macros.hpp>
#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));
}
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());
}