aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2016-12-01 19:41:43 +0800
committerGitHub <noreply@github.com>2016-12-01 19:41:43 +0800
commit83a0ad73ce9c0435d5f08eaaa2451a00a7c3a1c8 (patch)
tree3a46f416161dfdc765e9b06b35da635770b1ab1d /test
parent5d1d81d270430815c15fd09f612f6299ddda68ff (diff)
parent4cecedcb49188a49ed70241f36e19ec8cb542a4c (diff)
downloaddexon-solidity-83a0ad73ce9c0435d5f08eaaa2451a00a7c3a1c8.tar
dexon-solidity-83a0ad73ce9c0435d5f08eaaa2451a00a7c3a1c8.tar.gz
dexon-solidity-83a0ad73ce9c0435d5f08eaaa2451a00a7c3a1c8.tar.bz2
dexon-solidity-83a0ad73ce9c0435d5f08eaaa2451a00a7c3a1c8.tar.lz
dexon-solidity-83a0ad73ce9c0435d5f08eaaa2451a00a7c3a1c8.tar.xz
dexon-solidity-83a0ad73ce9c0435d5f08eaaa2451a00a7c3a1c8.tar.zst
dexon-solidity-83a0ad73ce9c0435d5f08eaaa2451a00a7c3a1c8.zip
Merge pull request #1313 from ethereum/lll-strict-parser
LLL: stricter parser
Diffstat (limited to 'test')
-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()