1 #include <catch2/catch_test_macros.hpp>
2 #include <nlohmann/json.hpp>
5 #include <wmtk/components/utils/Paths.hpp>
11 const std::filesystem::path
data_dir = WMTK_DATA_DIR;
13 TEST_CASE(
"component_output",
"[components][output]")
17 const std::filesystem::path input_file =
data_dir /
"armadillo.msh";
18 json input_component_json = {
20 {
"name",
"input_mesh"},
21 {
"cell_dimension", 2},
22 {
"file", input_file.string()},
24 {
"tetrahedron_attributes", json::array()}};
28 SECTION(
"should pass")
30 json component_json = R
"({
31 "input": "input_mesh",
32 "attributes": {"position": "vertices"},
39 SECTION("should throw")
41 json component_json = R
"({
42 "input": "input_mesh",
43 "attributes": {"position": "vertices"},
44 "file": "unknown file ending.abcdef"
const std::filesystem::path data_dir
TEST_CASE("component_output", "[components][output]")