Skip to content

Commit 97d1004

Browse files
committed
test: fix type deduction failure on AL2
1 parent 93421a8 commit 97d1004

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/base-json.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ BOOST_AUTO_TEST_CASE(encode)
3737
{ "string", "LF\nTAB\tAUml\xC3\xA4Ill\xC3" },
3838
{ "true", true },
3939
{ "uint", 23u },
40-
{ "generator", new ValueGenerator(vec, generate) },
41-
{ "empty_generator", new ValueGenerator(empty, [](int) -> std::optional<Value> { return std::nullopt; }) },
40+
{ "generator", new ValueGenerator{vec, generate} },
41+
{ "empty_generator", new ValueGenerator{empty, [](int) -> std::optional<Value> { return std::nullopt; }} },
4242
}));
4343

4444
String output (R"EOF({
@@ -67,7 +67,7 @@ BOOST_AUTO_TEST_CASE(encode)
6767

6868
auto got(JsonEncode(input, true));
6969
BOOST_CHECK_EQUAL(output, got);
70-
input->Set("generator", new ValueGenerator(vec, generate));
70+
input->Set("generator", new ValueGenerator{vec, generate});
7171

7272
std::ostringstream oss;
7373
JsonEncode(input, oss, true);
@@ -77,7 +77,7 @@ BOOST_AUTO_TEST_CASE(encode)
7777
boost::algorithm::replace_all(output, "Objectoftype'Function'", "Object of type 'Function'");
7878
boost::algorithm::replace_all(output, "\n", "");
7979

80-
input->Set("generator", new ValueGenerator(vec, generate));
80+
input->Set("generator", new ValueGenerator{vec, generate});
8181
BOOST_CHECK(JsonEncode(input, false) == output);
8282
}
8383

0 commit comments

Comments
 (0)