Skip to content

Commit 13d725d

Browse files
author
ochafik
committed
fix gcc build of test
1 parent 37b4a3a commit 13d725d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/test-json-partial.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,12 @@ static void test_json_healing() {
5454

5555
parse_all("[{\"a\": \"b\"}]");
5656

57-
auto test = [&](const std::vector<std::string> & inputs, const std::string & expected, const std::optional<std::string> & expected_marker = std::nullopt) {
57+
auto test = [&](const std::vector<std::string> & inputs, const std::string & expected, const std::string & expected_marker) {
5858
for (const auto & input : inputs) {
5959
common_json out;
6060
assert_equals(true, common_json_parse(input, "$foo", out));
6161
assert_equals<std::string>(expected, out.json.dump());
62-
if (expected_marker) {
63-
assert_equals<std::string>(*expected_marker, out.healing_marker.json_dump_marker);
64-
}
62+
assert_equals<std::string>(expected_marker, out.healing_marker.json_dump_marker);
6563
}
6664
};
6765
// No healing needed:

0 commit comments

Comments
 (0)