aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SolidityScanner.cpp
diff options
context:
space:
mode:
authorBalajiganapathi S <balajiganapathi.s@gmail.com>2017-10-25 16:12:07 +0800
committerChristian Parpart <christian@ethereum.org>2018-08-08 18:05:51 +0800
commit09a36cba0223c16248335703412cee019c7aa59f (patch)
treeae444498ba2265538c54d4af63742b8bec32da43 /test/libsolidity/SolidityScanner.cpp
parent0000bfc604b985c47ab153f4172596b860c7cce8 (diff)
downloaddexon-solidity-09a36cba0223c16248335703412cee019c7aa59f.tar
dexon-solidity-09a36cba0223c16248335703412cee019c7aa59f.tar.gz
dexon-solidity-09a36cba0223c16248335703412cee019c7aa59f.tar.bz2
dexon-solidity-09a36cba0223c16248335703412cee019c7aa59f.tar.lz
dexon-solidity-09a36cba0223c16248335703412cee019c7aa59f.tar.xz
dexon-solidity-09a36cba0223c16248335703412cee019c7aa59f.tar.zst
dexon-solidity-09a36cba0223c16248335703412cee019c7aa59f.zip
Add stricter hex underscore rules
Diffstat (limited to 'test/libsolidity/SolidityScanner.cpp')
-rw-r--r--test/libsolidity/SolidityScanner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/libsolidity/SolidityScanner.cpp b/test/libsolidity/SolidityScanner.cpp
index b650d918..9ad738ae 100644
--- a/test/libsolidity/SolidityScanner.cpp
+++ b/test/libsolidity/SolidityScanner.cpp
@@ -199,7 +199,7 @@ BOOST_AUTO_TEST_CASE(underscores_in_hex)
BOOST_CHECK_EQUAL(scanner.next(), Token::Identifier);
BOOST_CHECK_EQUAL(scanner.next(), Token::Assign);
BOOST_CHECK_EQUAL(scanner.next(), Token::Number);
- BOOST_CHECK_EQUAL(scanner.currentLiteral(), "0xab19cf");
+ BOOST_CHECK_EQUAL(scanner.currentLiteral(), "0xab_19cf");
BOOST_CHECK_EQUAL(scanner.next(), Token::Semicolon);
BOOST_CHECK_EQUAL(scanner.next(), Token::EOS);
}