diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-04-20 19:00:35 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-04-20 19:01:51 +0800 |
commit | 65345162b4217c7d3f9035ee8d2f4c3fa2ecb72a (patch) | |
tree | 48c0402a2b019d8fd3670539ffa10f93188b8468 /test/libsolidity | |
parent | 069ea38916a96dfb194cf8d2a0f5e07f9a586bf3 (diff) | |
download | dexon-solidity-65345162b4217c7d3f9035ee8d2f4c3fa2ecb72a.tar dexon-solidity-65345162b4217c7d3f9035ee8d2f4c3fa2ecb72a.tar.gz dexon-solidity-65345162b4217c7d3f9035ee8d2f4c3fa2ecb72a.tar.bz2 dexon-solidity-65345162b4217c7d3f9035ee8d2f4c3fa2ecb72a.tar.lz dexon-solidity-65345162b4217c7d3f9035ee8d2f4c3fa2ecb72a.tar.xz dexon-solidity-65345162b4217c7d3f9035ee8d2f4c3fa2ecb72a.tar.zst dexon-solidity-65345162b4217c7d3f9035ee8d2f4c3fa2ecb72a.zip |
Update tight packing test cases
Diffstat (limited to 'test/libsolidity')
-rw-r--r-- | test/libsolidity/syntaxTests/tight_packing_literals_fine.sol | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/test/libsolidity/syntaxTests/tight_packing_literals_fine.sol b/test/libsolidity/syntaxTests/tight_packing_literals_fine.sol index 46407f71..81e69eb4 100644 --- a/test/libsolidity/syntaxTests/tight_packing_literals_fine.sol +++ b/test/libsolidity/syntaxTests/tight_packing_literals_fine.sol @@ -2,10 +2,21 @@ contract C { function f() pure public returns (bytes32) { return keccak256(uint8(1)); } - function g() pure public returns (bytes) { - return abi.encode(1); + function g() pure public returns (bytes32) { + return sha3(uint8(1)); + } + function h() pure public returns (bytes32) { + return sha256(uint8(1)); + } + function j() pure public returns (bytes32) { + return ripemd160(uint8(1)); } - function h() pure public returns (bytes) { + function k() pure public returns (bytes) { return abi.encodePacked(uint8(1)); } + function l() pure public returns (bytes) { + return abi.encode(1); + } } +// ---- +// Warning: (168-182): "sha3" has been deprecated in favour of "keccak256" |