diff --git a/test/libsolidity/semanticTests/fixedPoint/arrays.sol b/test/libsolidity/semanticTests/fixedPoint/arrays.sol index 6841d6a62..0ba470177 100644 --- a/test/libsolidity/semanticTests/fixedPoint/arrays.sol +++ b/test/libsolidity/semanticTests/fixedPoint/arrays.sol @@ -11,6 +11,5 @@ contract C { } } // ---- -// f() -> -// g() -> - +// f() -> 10000, 11111111111111100000000000000000 +// g() -> 0x20, 3, 998888888000000000000, 44110000000001100000, 888888888888888888440000100000000000 diff --git a/test/libsolidity/semanticTests/fixedPoint/constants.sol b/test/libsolidity/semanticTests/fixedPoint/constants.sol index 836639cbb..a98bbde5a 100644 --- a/test/libsolidity/semanticTests/fixedPoint/constants.sol +++ b/test/libsolidity/semanticTests/fixedPoint/constants.sol @@ -8,4 +8,4 @@ contract C { } // ---- // f() -> 307.213100000000000000 -// g() -> 0.00 +// g() -> -0.33 diff --git a/test/libsolidity/semanticTests/fixedPoint/state_variables.sol b/test/libsolidity/semanticTests/fixedPoint/state_variables.sol index 3fecfc851..745645ca9 100644 --- a/test/libsolidity/semanticTests/fixedPoint/state_variables.sol +++ b/test/libsolidity/semanticTests/fixedPoint/state_variables.sol @@ -8,5 +8,5 @@ contract C { } } // ---- -// z() -> -// f() -> +// z() -> -9.300000000000000000 +// f() -> 1.700000000000000000, -1.800000000000000000, -9.300000000000000000, -3.400000000000000000 diff --git a/test/libsolidity/semanticTests/fixedPoint/state_variables_packed.sol b/test/libsolidity/semanticTests/fixedPoint/state_variables_packed.sol index 38a7b54bc..96fef3d65 100644 --- a/test/libsolidity/semanticTests/fixedPoint/state_variables_packed.sol +++ b/test/libsolidity/semanticTests/fixedPoint/state_variables_packed.sol @@ -12,10 +12,18 @@ contract C { function getLowLevel() public view returns (bytes32 r) { assembly { r := sload(0) } } - function get() public view returns (uint8, bytes8, bytes2, uint8) { + function getIntermediate() public view returns (uint8, bytes8, bytes2, uint8) { return (a, bytes8(b), bytes2(c), d); } + function get() public view returns (uint8, fixed62x2, fixed16x5, uint8) { + return (a, b, c, d); + } } // ---- -// z() -> -// f() -> +// getLowLevel() -> 0x00 +// getIntermediate() -> +// get() -> 0, 0x00, 0x00, 0 +// set() -> +// getLowLevel() -> 0x63cfccffffffffffffd72e01 +// getIntermediate() -> +// get() -> 1, 0xffffffffffffd72e000000000000000000000000000000000000000000000000, 0xcfcc000000000000000000000000000000000000000000000000000000000000, 0x63