Add more tests for UnusedPruner

This commit is contained in:
Alex Beregszaszi 2018-02-06 09:53:58 +00:00
parent 2cbbe58281
commit 33b27258e4

View File

@ -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(