Adds support for boolean literals in soltest.

This commit is contained in:
Erik Kundt
2019-02-21 23:28:48 +01:00
parent 773a3ff880
commit f683ceb3f8
7 changed files with 114 additions and 8 deletions
@@ -293,6 +293,23 @@ BOOST_AUTO_TEST_CASE(call_arguments)
);
}
BOOST_AUTO_TEST_CASE(call_arguments_bool)
{
char const* source = R"(
// f(bool): true -> false
)";
auto const calls = parse(source);
BOOST_REQUIRE_EQUAL(calls.size(), 1);
testFunctionCall(
calls.at(0),
Mode::SingleLine,
"f(bool)",
false,
fmt::encodeArgs(true),
fmt::encodeArgs(false)
);
}
BOOST_AUTO_TEST_CASE(call_arguments_tuple)
{
char const* source = R"(