From fb46268982f9c19f15e01f0ee50764c58bb351d4 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Sat, 6 May 2017 15:49:22 +0100 Subject: Add tests --- test/libjulia/Parser.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/libjulia/Parser.cpp') diff --git a/test/libjulia/Parser.cpp b/test/libjulia/Parser.cpp index d1081067..3931ceb8 100644 --- a/test/libjulia/Parser.cpp +++ b/test/libjulia/Parser.cpp @@ -161,6 +161,11 @@ BOOST_AUTO_TEST_CASE(function_calls) BOOST_CHECK(successParse("{ function f(a:u256) -> b:u256 {} function g(a:u256, b:u256, c:u256) {} function x() { g(1:u256, 2:u256, f(mul(2:u256, 3:u256))) x() } }")); } +BOOST_AUTO_TEST_CASE(tuple_assignment) +{ + BOOST_CHECK(successParse("{ function f() -> a:u256, b:u256, c:u256 {} let x:u256, y:u256, z:u256 := f() }")); +} + BOOST_AUTO_TEST_CASE(label) { CHECK_ERROR("{ label: }", ParserError, "Labels are not supported."); -- cgit