Update tests.

This commit is contained in:
chriseth 2021-07-28 16:38:29 +02:00
parent c60609e6d5
commit 45fc4baafa
6 changed files with 9 additions and 7 deletions

View File

@ -5,3 +5,4 @@ contract C {
// ====
// SMTEngine: all
// ----
// TypeError 7366: (52-61): Operator += not compatible with types fixed128x18 and int_const 1

View File

@ -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.

View File

@ -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.

View File

@ -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;
}
}

View File

@ -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;
}

View File

@ -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.