mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Adds support for boolean literals in soltest.
This commit is contained in:
@@ -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"(
|
||||
|
||||
Reference in New Issue
Block a user