diff options
author | Liana Husikyan <liana@ethdev.com> | 2015-04-02 00:16:57 +0800 |
---|---|---|
committer | Liana Husikyan <liana@ethdev.com> | 2015-04-08 21:56:36 +0800 |
commit | 5c0fe54f3fff424380dc77dc1c109f0eb68cf852 (patch) | |
tree | 35252e8385906b956c96c4a0e7dd4c57d7f19e2e /SolidityEndToEndTest.cpp | |
parent | 4d4a999db24b2baed1d72075a5f4ff5173942e24 (diff) | |
download | dexon-solidity-5c0fe54f3fff424380dc77dc1c109f0eb68cf852.tar dexon-solidity-5c0fe54f3fff424380dc77dc1c109f0eb68cf852.tar.gz dexon-solidity-5c0fe54f3fff424380dc77dc1c109f0eb68cf852.tar.bz2 dexon-solidity-5c0fe54f3fff424380dc77dc1c109f0eb68cf852.tar.lz dexon-solidity-5c0fe54f3fff424380dc77dc1c109f0eb68cf852.tar.xz dexon-solidity-5c0fe54f3fff424380dc77dc1c109f0eb68cf852.tar.zst dexon-solidity-5c0fe54f3fff424380dc77dc1c109f0eb68cf852.zip |
added < uint256 uinttype to test
Diffstat (limited to 'SolidityEndToEndTest.cpp')
-rw-r--r-- | SolidityEndToEndTest.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/SolidityEndToEndTest.cpp b/SolidityEndToEndTest.cpp index ee9c1f69..7163d469 100644 --- a/SolidityEndToEndTest.cpp +++ b/SolidityEndToEndTest.cpp @@ -972,10 +972,13 @@ BOOST_AUTO_TEST_CASE(array_accessor) contract test { uint[8] public data; uint[] public dynamicData; + uint24[] public smallTypeData; function test() { data[2] = 8; dynamicData.length = 3; dynamicData[2] = 8; + smallTypeData.length = 2; + smallTypeData[1] = 2; } } )"; @@ -985,6 +988,8 @@ BOOST_AUTO_TEST_CASE(array_accessor) BOOST_CHECK(callContractFunction("data(uint256)", 8) == encodeArgs()); BOOST_CHECK(callContractFunction("dynamicData(uint256)", 2) == encodeArgs(8)); BOOST_CHECK(callContractFunction("dynamicData(uint256)", 8) == encodeArgs()); + BOOST_CHECK(callContractFunction("smallTypeData(uint256)", 1) == encodeArgs(2)); + BOOST_CHECK(callContractFunction("smallTypeData(uint256)", 8) == encodeArgs()); } BOOST_AUTO_TEST_CASE(accessors_mapping_for_array) |