diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/libjulia/UnusedPruner.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/libjulia/UnusedPruner.cpp b/test/libjulia/UnusedPruner.cpp index 48ada5ed..b86a54b3 100644 --- a/test/libjulia/UnusedPruner.cpp +++ b/test/libjulia/UnusedPruner.cpp @@ -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( |