Skip to content

Commit e085550

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 e085550

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

examples/yaml_reader.cpp

Lines changed: 4 additions & 4 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

@@ -33,6 +33,6 @@ int main() {
3333
yaml_push_node(handle, map);
3434
yaml_push_node(handle, sequence);
3535

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

tests/test_yaml_c_wrapper.cpp

Lines changed: 7 additions & 7 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));
@@ -108,7 +108,7 @@ TEST_CASE("YAML can be parsed from files", "[parsing][file]") {
108108
}
109109

110110
SECTION("Parse non-existent file returns nullptr") {
111-
YAMLNodeHandle node = yaml_parse_file("nonexistent.yaml");
111+
YAMLNodeHandle node = yaml_parse_file("nonexistent.pals.yaml");
112112
REQUIRE(node == nullptr);
113113
}
114114
}
@@ -483,7 +483,7 @@ TEST_CASE("Scalar values can be edited directly", "[modification][scalar]") {
483483
// ===========================================
484484

485485
TEST_CASE("YAML can be written to files", "[io][file]") {
486-
const char* test_file = "test_output.yaml";
486+
const char* test_file = "test_output.pals.yaml";
487487

488488
SECTION("Write simple map") {
489489
YAMLNodeHandle map = yaml_create_map();
@@ -600,11 +600,11 @@ TEST_CASE("YAML nodes can be cloned", "[clone]") {
600600
}
601601

602602
// ===========================================
603-
// TEST SUITE: ex.yaml Structure Tests
603+
// TEST SUITE: ex.pals.yaml Structure Tests
604604
// ===========================================
605605

606-
TEST_CASE("ex.yaml has expected structure", "[ex.yaml][structure]") {
607-
YAMLNodeHandle root = yaml_parse_file("../lattice_files/ex.yaml");
606+
TEST_CASE("ex.pals.yaml has expected structure", "[ex.pals.yaml][structure]") {
607+
YAMLNodeHandle root = yaml_parse_file("../lattice_files/ex.pals.yaml");
608608
REQUIRE(root != nullptr);
609609

610610
SECTION("Root is a sequence") {
@@ -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)