Skip to content

Commit ebb4e38

Browse files
committed
fix: update YAML file loading to use string path for consistency
1 parent 2110c77 commit ebb4e38

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cucumber_cpp/library/cucumber_expression/test/TestExpression.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace cucumber_cpp::library::cucumber_expression
3232

3333
for (const auto& file : std::filesystem::directory_iterator(path))
3434
if (file.is_regular_file() && file.path().extension() == ".yaml")
35-
testdata.emplace_back(file.path().string(), YAML::LoadFile(file.path()));
35+
testdata.emplace_back(file.path().string(), YAML::LoadFile(file.path().string()));
3636

3737
return testdata;
3838
}

cucumber_cpp/library/cucumber_expression/test/TestExpressionParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ namespace cucumber_cpp::library::cucumber_expression
6868

6969
for (const auto& file : std::filesystem::directory_iterator(path))
7070
if (file.is_regular_file() && file.path().extension() == ".yaml")
71-
testdata.emplace_back(file.path().string(), YAML::LoadFile(file.path()));
71+
testdata.emplace_back(file.path().string(), YAML::LoadFile(file.path().string()));
7272

7373
return testdata;
7474
}

cucumber_cpp/library/cucumber_expression/test/TestExpressionTokenizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ namespace cucumber_cpp::library::cucumber_expression
5252

5353
for (const auto& file : std::filesystem::directory_iterator(path))
5454
if (file.is_regular_file() && file.path().extension() == ".yaml")
55-
testdata.emplace_back(file.path().string(), YAML::LoadFile(file.path()));
55+
testdata.emplace_back(file.path().string(), YAML::LoadFile(file.path().string()));
5656

5757
return testdata;
5858
}

0 commit comments

Comments
 (0)