diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2016-11-30 08:16:25 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2016-12-01 00:17:58 +0800 |
commit | 4cecedcb49188a49ed70241f36e19ec8cb542a4c (patch) | |
tree | d428950de6f9b4df1097bf2cd9054174fe0026f6 /test/liblll/Parser.cpp | |
parent | b1add657b76621952be100b4203dd2c8a466b9a1 (diff) | |
download | dexon-solidity-4cecedcb49188a49ed70241f36e19ec8cb542a4c.tar.gz dexon-solidity-4cecedcb49188a49ed70241f36e19ec8cb542a4c.tar.zst dexon-solidity-4cecedcb49188a49ed70241f36e19ec8cb542a4c.zip |
LLL: update tests with the strict parser
Diffstat (limited to 'test/liblll/Parser.cpp')
-rw-r--r-- | test/liblll/Parser.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/liblll/Parser.cpp b/test/liblll/Parser.cpp index fc91f3c5..0d5d9ea5 100644 --- a/test/liblll/Parser.cpp +++ b/test/liblll/Parser.cpp @@ -87,6 +87,8 @@ BOOST_AUTO_TEST_CASE(hexadecimals) char const* text = "0x1234"; BOOST_CHECK(successParse(text)); BOOST_CHECK_EQUAL(parse(text), R"(4660)"); + + BOOST_CHECK(!successParse("0x")); } BOOST_AUTO_TEST_CASE(sequence) @@ -169,7 +171,7 @@ BOOST_AUTO_TEST_CASE(list) BOOST_CHECK_EQUAL(parse(text), R"(( 1234 ))"); BOOST_CHECK(successParse("( 1234 5467 )")); - BOOST_CHECK(successParse("()")); + BOOST_CHECK(!successParse("()")); } BOOST_AUTO_TEST_SUITE_END() |