aboutsummaryrefslogtreecommitdiffstats
path: root/test/libjulia/Parser.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-05-19 23:48:36 +0800
committerGitHub <noreply@github.com>2017-05-19 23:48:36 +0800
commit982f661339e695f4ad913ff17bc12a9e190b25ed (patch)
tree421c93ff249d89f3778dae422cea3ebcec7a9e4c /test/libjulia/Parser.cpp
parent6f9428e9008f9d979caf7ff2f67ae85c784a0111 (diff)
parentebcb27e5c14549d114c116889c730c3a8cd82a86 (diff)
downloaddexon-solidity-982f661339e695f4ad913ff17bc12a9e190b25ed.tar.gz
dexon-solidity-982f661339e695f4ad913ff17bc12a9e190b25ed.tar.zst
dexon-solidity-982f661339e695f4ad913ff17bc12a9e190b25ed.zip
Merge pull request #2223 from ethereum/julia-bool
Add support for bool literals in Julia
Diffstat (limited to 'test/libjulia/Parser.cpp')
-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 }"));