mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add more tests for UnusedPruner
This commit is contained in:
parent
2cbbe58281
commit
33b27258e4
@ -71,6 +71,22 @@ BOOST_AUTO_TEST_CASE(multi_declarations)
|
||||
);
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(multi_assignments)
|
||||
{
|
||||
CHECK(
|
||||
"{ let x, y x := 1 y := 2 }",
|
||||
"{ let x, y x := 1 y := 2 }"
|
||||
);
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(multi_partial_assignments)
|
||||
{
|
||||
CHECK(
|
||||
"{ let x, y x := 1 }",
|
||||
"{ let x, y x := 1 }"
|
||||
);
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(functions)
|
||||
{
|
||||
CHECK(
|
||||
@ -87,6 +103,13 @@ BOOST_AUTO_TEST_CASE(intermediate_assignment)
|
||||
);
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(intermediate_multi_assignment){
|
||||
CHECK(
|
||||
"{ let a, b function f() -> x { } a := f() b := 1 }",
|
||||
"{ let a, b function f() -> x { } a := f() b := 1 }"
|
||||
);
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(multi_declare)
|
||||
{
|
||||
CHECK(
|
||||
|
Loading…
Reference in New Issue
Block a user