aboutsummaryrefslogtreecommitdiffstats
path: root/test/libjulia
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-05-17 20:20:24 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-05-19 16:44:16 +0800
commit2ade4fcdd80cdb12ef12cf929021f64d20de53d2 (patch)
tree6377d16ba4d4e9bc7572eb6a4ba9547f327dd1f1 /test/libjulia
parentedd0afa3c35475990bacd8ffe64d15b3be40a036 (diff)
downloaddexon-solidity-2ade4fcdd80cdb12ef12cf929021f64d20de53d2.tar.gz
dexon-solidity-2ade4fcdd80cdb12ef12cf929021f64d20de53d2.tar.zst
dexon-solidity-2ade4fcdd80cdb12ef12cf929021f64d20de53d2.zip
Add tests for bool literal
Diffstat (limited to 'test/libjulia')
-rw-r--r--test/libjulia/Parser.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/libjulia/Parser.cpp b/test/libjulia/Parser.cpp
index c401f57b..d1081067 100644
--- a/test/libjulia/Parser.cpp
+++ b/test/libjulia/Parser.cpp
@@ -120,6 +120,12 @@ BOOST_AUTO_TEST_CASE(vardecl)
BOOST_CHECK(successParse("{ let x:u256 := 7:u256 }"));
}
+BOOST_AUTO_TEST_CASE(vardecl_bool)
+{
+ BOOST_CHECK(successParse("{ let x:bool := true:bool }"));
+ BOOST_CHECK(successParse("{ let x:bool := false:bool }"));
+}
+
BOOST_AUTO_TEST_CASE(assignment)
{
BOOST_CHECK(successParse("{ let x:u256 := 2:u256 let y:u256 := x }"));