19 auto gold_string(
"a/b/c");
20 const hdf_path gold_path(gold_string);
23 hdf_path path_sv(std::string_view{gold_string});
24 REQUIRE(path_sv.string() == gold_string);
27 hdf_path path_s(std::string{gold_string});
28 REQUIRE(path_s.string() == gold_string);
33 REQUIRE(path_path == gold_path);
50 hdf_path result = path / std::string_view(
"c");
54 result = path / std::string(
"c");
62 result = result /
"d";
154 REQUIRE(!relative_path.has_root_directory());
const std::string & string() const
Return std::string for use with HDF5.
helper functions for EinsplineSetBuilder
TEST_CASE("complex_helper", "[type_traits]")
hdf_path & replace_subgroup(std::string_view p)
Replace the last subgroup in path.
REQUIRE(std::filesystem::exists(filename))
hdf_path & concat(std::string_view p)
Concatenates two paths without introducing a directory separator.
hdf_path & append(std::string_view p)
Appends elements to the path with a directory separator.
hdf_path & remove_subgroup()
Remove last subgroup in path.
bool has_root_directory() const
Does the path absolute (true) or relative to the current group in hdf_archive (false)?