solidity/test/libsolidity/semanticTests/expressions/bytes_comparison.sol
2023-05-11 10:56:55 -05:00

11 lines
192 B
Solidity

contract test {
function f() public returns (bool) {
bytes2 a = "a";
bytes2 x = "aa";
bytes2 b = "b";
return a < x && x < b;
}
}
// ----
// f() -> true