Extracting some Solidity end-to-end tests.

This commit is contained in:
Christian Parpart
2019-07-01 15:37:46 +02:00
committed by chriseth
parent b8dbf7d2a8
commit 62f6e4bad3
16 changed files with 202 additions and 277 deletions
@@ -0,0 +1,13 @@
contract test {
function f(uint x) public returns(uint d) {
return x > 100 ?
x > 1000 ? 1000 : 100
:
x > 50 ? 50 : 10;
}
}
// ----
// f(uint256): 1001 -> 1000
// f(uint256): 500 -> 100
// f(uint256): 80 -> 50
// f(uint256): 40 -> 10