Skip to content

Commit 93ae829

Browse files
committed
Lattice Files: name.pals.yaml
Rename the lattice file in the repo for clarity to the recommended file ending for PALS.
1 parent 0cfcee3 commit 93ae829

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

examples/yaml_reader.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
int main() {
55
// reading a lattice from a yaml file
6-
YAMLNodeHandle handle = yaml_parse_file("../lattice_files/ex.yaml");
6+
YAMLNodeHandle handle = yaml_parse_file("../lattice_files/ex.pals.yaml");
77
// printing to terminal
88
std::cout << yaml_to_string(handle) << std::endl << std::endl;
99

@@ -34,5 +34,5 @@ int main() {
3434
yaml_push_node(handle, sequence);
3535

3636
// writing modified lattice file to expand.yaml
37-
yaml_write_file(handle, "../lattice_files/expand.yaml");
38-
}
37+
yaml_write_file(handle, "../lattice_files/expand.pals.yaml");
38+
}

tests/test_yaml_c_wrapper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ TEST_CASE("YAML can be parsed from strings", "[parsing]") {
9898

9999
TEST_CASE("YAML can be parsed from files", "[parsing][file]") {
100100
SECTION("Parse valid file") {
101-
YAMLNodeHandle node = yaml_parse_file("../lattice_files/ex.yaml");
101+
YAMLNodeHandle node = yaml_parse_file("../lattice_files/ex.pals.yaml");
102102

103103
REQUIRE(node != nullptr);
104104
REQUIRE(yaml_is_sequence(node));
@@ -742,4 +742,4 @@ TEST_CASE("Edge cases are handled correctly", "[edge_cases]") {
742742
yaml_set_scalar_string(scalar, nullptr); // Should not crash
743743
yaml_delete_node(scalar);
744744
}
745-
}
745+
}

0 commit comments

Comments
 (0)