aboutsummaryrefslogtreecommitdiffstats
path: root/test/libjulia
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-05-06 22:49:22 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-05-23 17:24:19 +0800
commitfb46268982f9c19f15e01f0ee50764c58bb351d4 (patch)
treef71af087d97b991da73b7d9e80b471c9ed037968 /test/libjulia
parent3451a30e5cd6d8bceedba70bf9c5012f263b3ec8 (diff)
downloaddexon-solidity-fb46268982f9c19f15e01f0ee50764c58bb351d4.tar.gz
dexon-solidity-fb46268982f9c19f15e01f0ee50764c58bb351d4.tar.zst
dexon-solidity-fb46268982f9c19f15e01f0ee50764c58bb351d4.zip
Add tests
Diffstat (limited to 'test/libjulia')
-rw-r--r--test/libjulia/Parser.cpp5
1 files changed, 5 insertions, 0 deletions
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.");