Update tests

This commit is contained in:
Alex Beregszaszi
2020-12-14 19:32:31 +00:00
parent 15237c8404
commit edbdff8619
71 changed files with 214 additions and 219 deletions
@@ -9,7 +9,7 @@ library D {
contract C {
using D for bytes;
function f(bytes calldata _x) public pure returns (byte, byte) {
function f(bytes calldata _x) public pure returns (bytes1, bytes1) {
return (_x.f()[0], _x.g()[0]);
}
}
@@ -9,7 +9,7 @@ library D {
contract C {
using D for bytes;
function f(bytes calldata _x) public pure returns (byte, byte) {
function f(bytes calldata _x) public pure returns (bytes1, bytes1) {
return (_x.f()[0], _x.g()[0]);
}
}
@@ -1,15 +1,15 @@
library D {
function f(bytes calldata _x) internal pure returns (byte) {
function f(bytes calldata _x) internal pure returns (bytes1) {
return _x[0];
}
function g(bytes memory _x) internal pure returns (byte) {
function g(bytes memory _x) internal pure returns (bytes1) {
return _x[0];
}
}
contract C {
using D for bytes;
function f(bytes calldata _x) public pure returns (byte, byte) {
function f(bytes calldata _x) public pure returns (bytes1, bytes1) {
return (_x.f(), _x.g());
}
}
@@ -1,15 +1,15 @@
library D {
function f(bytes calldata _x) public pure returns (byte) {
function f(bytes calldata _x) public pure returns (bytes1) {
return _x[0];
}
function g(bytes memory _x) public pure returns (byte) {
function g(bytes memory _x) public pure returns (bytes1) {
return _x[0];
}
}
contract C {
using D for bytes;
function f(bytes calldata _x) public pure returns (byte, byte) {
function f(bytes calldata _x) public pure returns (bytes1, bytes1) {
return (_x.f(), _x.g());
}
}