diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-02-13 20:36:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-13 20:36:05 +0800 |
commit | 8f8ad3840eecd7b22565e0c36eb55ceca5d5b57a (patch) | |
tree | 159d2bb15029f85c91092add1feae87745dd21ee /test | |
parent | 1d21f30f828ee9b50ae71e877218b11c75b37526 (diff) | |
parent | 560fbd0df1f9f9ba1c9a95f1319914df8fd79278 (diff) | |
download | dexon-solidity-8f8ad3840eecd7b22565e0c36eb55ceca5d5b57a.tar.gz dexon-solidity-8f8ad3840eecd7b22565e0c36eb55ceca5d5b57a.tar.zst dexon-solidity-8f8ad3840eecd7b22565e0c36eb55ceca5d5b57a.zip |
Merge pull request #3349 from federicobond/number-improv
Avoid output messages size blow-up using huge bignums literals
Diffstat (limited to 'test')
-rw-r--r-- | test/libsolidity/SolidityNameAndTypeResolution.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp index 1953195c..e757c755 100644 --- a/test/libsolidity/SolidityNameAndTypeResolution.cpp +++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp @@ -1752,7 +1752,7 @@ BOOST_AUTO_TEST_CASE(overflow_caused_by_ether_units) uint256 a; } )"; - CHECK_ERROR(sourceCode, TypeError, "Type int_const 115792089237316195423570985008687907853269984665640564039458000000000000000000 is not implicitly convertible to expected type uint256."); + CHECK_ERROR(sourceCode, TypeError, "Type int_const 1157...(70 digits omitted)...0000 is not implicitly convertible to expected type uint256."); } BOOST_AUTO_TEST_CASE(exp_operator_exponent_too_big) @@ -4586,7 +4586,7 @@ BOOST_AUTO_TEST_CASE(rational_index_access) } } )"; - CHECK_ERROR(text, TypeError, "rational_const 1/2 is not implicitly convertible to expected type uint256"); + CHECK_ERROR(text, TypeError, "rational_const 1 / 2 is not implicitly convertible to expected type uint256"); } BOOST_AUTO_TEST_CASE(rational_to_fixed_literal_expression) |