17 SECTION(
"should pass")
19 const std::filesystem::path input_file =
data_dir /
"small.msh";
25 json component_json = {
26 {
"file", input_file.string()},
29 {
"tetrahedron_attributes", json::array()}};
31 CHECK(opts.file == input_file);
32 CHECK(opts.ignore_z_if_zero ==
false);
33 CHECK(opts.old_mode ==
true);
34 CHECK(opts.old_mode ==
true);
35 REQUIRE(opts.imported_attributes.has_value());
36 CHECK(opts.imported_attributes.value().size() == 4);
38 for (
const auto& v : opts.imported_attributes.value()) {
42 CHECK(js2 == component_json);
46 CHECK(*a == b.root());
50 nlohmann::json js =
"path";
51 REQUIRE(js.is_string());
53 CHECK(opts.file.string() ==
"path");
56 SECTION(
"should throw")