Update tests.

This commit is contained in:
chriseth 2021-08-03 14:26:35 +02:00
parent d37b5c640b
commit ebd8dd2a99
16 changed files with 14 additions and 43 deletions

View File

@ -5,4 +5,3 @@ contract C {
fixed a4 = 0 / -0.123; fixed a4 = 0 / -0.123;
} }
// ---- // ----
// UnimplementedFeatureError: Not yet implemented - FixedPointType.

View File

@ -1,9 +1,7 @@
contract test { contract test {
function f() public { function f() public pure {
fixed[3] memory a = [fixed(3.5), fixed(-4.25), fixed(967.125)]; fixed[3] memory a = [fixed(3.5), fixed(-4.25), fixed(967.125)];
a;
} }
} }
// ---- // ----
// UnimplementedFeatureError: Not yet implemented - FixedPointType.
// Warning 2072: (50-67): Unused local variable.
// Warning 2018: (20-119): Function state mutability can be restricted to pure

View File

@ -1,9 +1,7 @@
contract test { contract test {
function f() public { function f() public pure {
ufixed128x3[4] memory a = [ufixed128x3(3.5), 4.125, 2.5, 4.0]; ufixed128x3[4] memory a = [ufixed128x3(3.5), 4.125, 2.5, 4.0];
a;
} }
} }
// ---- // ----
// UnimplementedFeatureError: Not yet implemented - FixedPointType.
// Warning 2072: (50-73): Unused local variable.
// Warning 2018: (20-118): Function state mutability can be restricted to pure

View File

@ -1,5 +1,5 @@
contract test { contract test {
function f() public { function f() public pure {
uint64 a = 3; uint64 a = 3;
int64 b = 4; int64 b = 4;
fixed c = b; fixed c = b;
@ -8,5 +8,3 @@ contract test {
} }
} }
// ---- // ----
// UnimplementedFeatureError: Not yet implemented - FixedPointType.
// Warning 2018: (20-147): Function state mutability can be restricted to pure

View File

@ -1,10 +1,8 @@
contract test { contract test {
function f() public { function f() public pure {
fixed c = 3; fixed c = 3;
ufixed d = 4; ufixed d = 4;
c; d; c; d;
} }
} }
// ---- // ----
// UnimplementedFeatureError: Not yet implemented - FixedPointType.
// Warning 2018: (20-104): Function state mutability can be restricted to pure

View File

@ -1,10 +1,8 @@
contract test { contract test {
function f() public { function f() public pure {
fixed a = 4.5; fixed a = 4.5;
ufixed d = 2.5; ufixed d = 2.5;
a; d; a; d;
} }
} }
// ---- // ----
// UnimplementedFeatureError: Not yet implemented - FixedPointType.
// Warning 2018: (20-108): Function state mutability can be restricted to pure

View File

@ -6,4 +6,3 @@ contract test {
} }
} }
// ---- // ----
// UnimplementedFeatureError: Not yet implemented - FixedPointType.

View File

@ -8,4 +8,3 @@ contract A {
} }
} }
// ---- // ----
// UnimplementedFeatureError: Not yet implemented - FixedPointType.

View File

@ -1,9 +1,7 @@
contract test { contract test {
function f() public { function f() public pure {
fixed16x2 a = 0; a; fixed16x2 a = 0; a;
ufixed32x1 b = 0; b; ufixed32x1 b = 0; b;
} }
} }
// ---- // ----
// UnimplementedFeatureError: Not yet implemented - FixedPointType.
// Warning 2018: (20-104): Function state mutability can be restricted to pure

View File

@ -1,10 +1,8 @@
contract test { contract test {
function f() public { function f() public pure {
ufixed256x18 a = ufixed256x18(1/3); a; ufixed256x18 a = ufixed256x18(1/3); a;
ufixed248x18 b = ufixed248x18(1/3); b; ufixed248x18 b = ufixed248x18(1/3); b;
ufixed8x1 c = ufixed8x1(1/3); c; ufixed8x1 c = ufixed8x1(1/3); c;
} }
} }
// ---- // ----
// UnimplementedFeatureError: Not yet implemented - FixedPointType.
// Warning 2018: (20-182): Function state mutability can be restricted to pure

View File

@ -5,4 +5,3 @@ contract test {
} }
} }
// ---- // ----
// UnimplementedFeatureError: Not yet implemented - FixedPointType.

View File

@ -6,4 +6,3 @@ contract test {
myStruct a = myStruct(3.125, 3); myStruct a = myStruct(3.125, 3);
} }
// ---- // ----
// UnimplementedFeatureError: Not yet implemented - FixedPointType.

View File

@ -1,16 +1,13 @@
contract test { contract test {
function f() public { function f() public pure {
ufixed64x8 a = 3.5 * 3; ufixed64x8 a = 3.5 * 3;
ufixed64x8 b = 4 - 2.5; ufixed64x8 b = 4 - 2.5;
ufixed64x8 c = 11 / 4; ufixed64x8 c = 11 / 4;
ufixed240x5 d = 599 + 0.21875; ufixed240x5 d = 599 + 0.21875;
ufixed256x18 e = ufixed256x18(35.245 % 12.9); ufixed256x18 e = ufixed256x18(35.245 % 12.9);
ufixed256x18 f = ufixed256x18(1.2 % 2); ufixed256x18 f1 = ufixed256x18(1.2 % 2);
fixed g = 2 ** -2; fixed g = 2 ** -2;
a; b; c; d; e; f; g; a; b; c; d; e; f1; g;
} }
} }
// ---- // ----
// UnimplementedFeatureError: Not yet implemented - FixedPointType.
// Warning 2519: (238-252): This declaration shadows an existing declaration.
// Warning 2018: (20-339): Function state mutability can be restricted to pure

View File

@ -1,14 +1,9 @@
contract A { contract A {
fixed40x40 storeMe; fixed40x40 storeMe;
function f(ufixed x, fixed32x32 y) public { function f(ufixed, fixed32x32) public pure {
ufixed8x8 a; ufixed8x8 a;
fixed b; fixed b;
a; b;
} }
} }
// ---- // ----
// UnimplementedFeatureError: Fixed point types not implemented.
// Warning 5667: (52-60): Unused function parameter. Remove or comment out the variable name to silence this warning.
// Warning 5667: (62-74): Unused function parameter. Remove or comment out the variable name to silence this warning.
// Warning 2072: (93-104): Unused local variable.
// Warning 2072: (114-121): Unused local variable.
// Warning 2018: (41-128): Function state mutability can be restricted to pure

View File

@ -7,4 +7,3 @@ contract C {
} }
} }
// ---- // ----
// UnimplementedFeatureError: Not yet implemented - FixedPointType.

View File

@ -13,4 +13,3 @@ contract C {
} }
} }
// ---- // ----
// UnimplementedFeatureError: Not yet implemented - FixedPointType.