diff options
author | RJ Catalano <rcatalano@macsales.com> | 2016-03-11 03:25:14 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-03-12 00:50:09 +0800 |
commit | d0054a8d294901a0107e37d19ab6cb858d3a72f1 (patch) | |
tree | 07d9f524454b5cd70607f88b4232fb5da9469729 /test | |
parent | d0bb87ae88602f4afc091d9cda1be352258a6df9 (diff) | |
download | dexon-solidity-d0054a8d294901a0107e37d19ab6cb858d3a72f1.tar.gz dexon-solidity-d0054a8d294901a0107e37d19ab6cb858d3a72f1.tar.zst dexon-solidity-d0054a8d294901a0107e37d19ab6cb858d3a72f1.zip |
added keyword type and some tests, changes in lexical cast
Diffstat (limited to 'test')
-rw-r--r-- | test/libsolidity/SolidityNameAndTypeResolution.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp index b2e46b7d..bf43224f 100644 --- a/test/libsolidity/SolidityNameAndTypeResolution.cpp +++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp @@ -3232,6 +3232,19 @@ BOOST_AUTO_TEST_CASE(int10abc_is_identifier) BOOST_CHECK(success(text)); } +BOOST_AUTO_TEST_CASE(invalid_fixed_types) +{ + char const* text = R"( + contract test { + function f() { + fixed0x7 a = .3; + fixed99999999999999999999999999999999999999x7 b = 9.5; + } + } + )"; + BOOST_CHECK(!success(text)); +} + BOOST_AUTO_TEST_CASE(library_functions_do_not_have_value) { char const* text = R"( |