1 #include <catch2/catch_test_macros.hpp>
2 #include <nlohmann/json.hpp>
5 #include <wmtk/components/utils/Paths.hpp>
12 const std::filesystem::path
data_dir = WMTK_DATA_DIR;
14 TEST_CASE(
"component_mesh_info",
"[components][mesh_info]")
18 const std::filesystem::path input_file =
data_dir /
"small.msh";
20 json input_component_json = {
22 {
"name",
"input_mesh"},
23 {
"file", input_file.string()},
25 {
"tetrahedron_attributes", json::array()}};
31 SECTION(
"should pass")
33 json mesh_info_component_json = {{
"type",
"mesh_info"}, {
"input",
"input_mesh"}};
37 SECTION(
"should throw")
39 json mesh_info_component_json = {
40 {
"type",
"mesh_info"},
41 {
"input",
"In case you ever name your file like that: What is wrong with you?"}};
void mesh_info(const utils::Paths &paths, const nlohmann::json &j, io::Cache &cache)
const std::filesystem::path data_dir
TEST_CASE("component_mesh_info", "[components][mesh_info]")