aboutsummaryrefslogtreecommitdiffstats
path: root/test/liblll/Parser.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2016-11-30 08:16:25 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2016-12-01 00:17:58 +0800
commit4cecedcb49188a49ed70241f36e19ec8cb542a4c (patch)
treed428950de6f9b4df1097bf2cd9054174fe0026f6 /test/liblll/Parser.cpp
parentb1add657b76621952be100b4203dd2c8a466b9a1 (diff)
downloaddexon-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.cpp4
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()