mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update tests.
This commit is contained in:
parent
504c873e9d
commit
71b21a82da
@ -5,3 +5,4 @@ contract C {
|
||||
// ====
|
||||
// SMTEngine: all
|
||||
// ----
|
||||
// TypeError 7366: (52-61): Operator += not compatible with types fixed128x18 and int_const 1
|
||||
|
@ -7,4 +7,4 @@ contract C {
|
||||
// ====
|
||||
// SMTEngine: all
|
||||
// ----
|
||||
// UnimplementedFeatureError: Not yet implemented - FixedPointType.
|
||||
// TypeError 2271: (61-68): Operator >>> not compatible with types fixed128x18 and int_const 6. Arithmetic operators on fixed point types are not yet supported.
|
||||
|
@ -5,4 +5,4 @@ contract test {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError 9574: (75-92): Type ufixed128x18 is not implicitly convertible to expected type ufixed248x8. Too many fractional digits.
|
||||
// TypeError 9574: (75-92): Type ufixed128x18 is not implicitly convertible to expected type ufixed248x8. Conversion would incur precision loss - use explicit conversion instead.
|
||||
|
@ -1,7 +1,7 @@
|
||||
contract test {
|
||||
function f() public {
|
||||
ufixed256x80 a = ufixed256x80(1/3); a;
|
||||
ufixed248x80 b = ufixed248x80(1/3); b;
|
||||
ufixed256x18 a = ufixed256x18(1/3); a;
|
||||
ufixed248x18 b = ufixed248x18(1/3); b;
|
||||
ufixed8x1 c = ufixed8x1(1/3); c;
|
||||
}
|
||||
}
|
||||
|
@ -4,8 +4,8 @@ contract test {
|
||||
ufixed64x8 b = 4 - 2.5;
|
||||
ufixed64x8 c = 11 / 4;
|
||||
ufixed240x5 d = 599 + 0.21875;
|
||||
ufixed256x80 e = ufixed256x80(35.245 % 12.9);
|
||||
ufixed256x80 f = ufixed256x80(1.2 % 2);
|
||||
ufixed256x18 e = ufixed256x18(35.245 % 12.9);
|
||||
ufixed256x18 f = ufixed256x18(1.2 % 2);
|
||||
fixed g = 2 ** -2;
|
||||
a; b; c; d; e; f; g;
|
||||
}
|
||||
|
@ -7,4 +7,5 @@ contract test {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError 2271: (117-123): Operator % not compatible with types rational_const 1 / 2 and fixed128x18. Fractional literals not supported.
|
||||
// TypeError 2271: (117-123): Operator % not compatible with types rational_const 1 / 2 and fixed128x18. Arithmetic operators on fixed point types are not yet supported.
|
||||
// TypeError 2271: (143-148): Operator % not compatible with types fixed128x18 and fixed128x18. Arithmetic operators on fixed point types are not yet supported.
|
||||
|
Loading…
Reference in New Issue
Block a user