mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-06-11 06:47:14 +02:00
17 lines
447 B
C++
17 lines
447 B
C++
#include <catch2/catch_test_macros.hpp>
|
|
#include <fstream>
|
|
#include <filesystem>
|
|
|
|
#include "test_config.hpp"
|
|
|
|
|
|
TEST_CASE("Test suite can find data assets"){
|
|
auto fpath = test_data_path()/ "test_numpy_file.npy";
|
|
REQUIRE(std::filesystem::exists(fpath));
|
|
}
|
|
|
|
TEST_CASE("Test suite can open data assets"){
|
|
auto fpath = test_data_path()/ "test_numpy_file.npy";
|
|
auto f = std::ifstream(fpath, std::ios::binary);
|
|
REQUIRE(f.is_open());
|
|
} |