diff options
author | VoR0220 <catalanor0220@gmail.com> | 2016-04-13 01:36:34 +0800 |
---|---|---|
committer | VoR0220 <catalanor0220@gmail.com> | 2016-05-10 00:41:03 +0800 |
commit | bfc238c8d11e118443d373d819deeada9fe1ea3b (patch) | |
tree | 54076cd985d031a5a813946a678a4e6696af2117 /test | |
parent | 5bddb2d6ffdd8a2c02a61cc304f2743f55dcb5f9 (diff) | |
download | dexon-solidity-bfc238c8d11e118443d373d819deeada9fe1ea3b.tar dexon-solidity-bfc238c8d11e118443d373d819deeada9fe1ea3b.tar.gz dexon-solidity-bfc238c8d11e118443d373d819deeada9fe1ea3b.tar.bz2 dexon-solidity-bfc238c8d11e118443d373d819deeada9fe1ea3b.tar.lz dexon-solidity-bfc238c8d11e118443d373d819deeada9fe1ea3b.tar.xz dexon-solidity-bfc238c8d11e118443d373d819deeada9fe1ea3b.tar.zst dexon-solidity-bfc238c8d11e118443d373d819deeada9fe1ea3b.zip |
updated algorithm for bit finding...now to figure out literal value
tiny fixups
changed location of the check
got rid of extra space and fixed a couple of things
added binary results bits
change back literal value
Diffstat (limited to 'test')
-rw-r--r-- | test/libsolidity/SolidityNameAndTypeResolution.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp index a4eec7e6..aea2c688 100644 --- a/test/libsolidity/SolidityNameAndTypeResolution.cpp +++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp @@ -3454,11 +3454,10 @@ BOOST_AUTO_TEST_CASE(inline_array_fixed_rationals) BOOST_CHECK(success(text)); } -BOOST_AUTO_TEST_CASE(zero_and_eight_variants_fixed) +BOOST_AUTO_TEST_CASE(zero_and_eight_variant_fixed) { char const* text = R"( contract A { - ufixed8x0 someInt = 4; ufixed0x8 half = 0.5; } )"; @@ -3471,7 +3470,7 @@ BOOST_AUTO_TEST_CASE(size_capabilities_of_fixed_point_types) contract test { function f() { ufixed0x256 a = 0.12345678; - ufixed24x0 b = 12345678.0; + ufixed24x8 b = 12345678.5; ufixed0x256 c = 0.00000009; } } @@ -3532,7 +3531,7 @@ BOOST_AUTO_TEST_CASE(rational_to_bytes_implicit_conversion) } } )"; - BOOST_CHECK(success(text)); + BOOST_CHECK(!success(text)); } BOOST_AUTO_TEST_CASE(fixed_to_bytes_implicit_conversion) |