From d350f5c96a1fb253d2a271c96d2051eb311737f4 Mon Sep 17 00:00:00 2001 From: Dimitry Date: Fri, 9 Dec 2016 17:17:42 +0300 Subject: upgrade eip158 to general tests --- .../stSolidityTest/TestKeywordsFiller.json | 48 ++++++++++++++++++++-- 1 file changed, 45 insertions(+), 3 deletions(-) (limited to 'src/GeneralStateTestsFiller/stSolidityTest/TestKeywordsFiller.json') diff --git a/src/GeneralStateTestsFiller/stSolidityTest/TestKeywordsFiller.json b/src/GeneralStateTestsFiller/stSolidityTest/TestKeywordsFiller.json index ac9e701dc..caf83dca4 100644 --- a/src/GeneralStateTestsFiller/stSolidityTest/TestKeywordsFiller.json +++ b/src/GeneralStateTestsFiller/stSolidityTest/TestKeywordsFiller.json @@ -15,7 +15,7 @@ "gas" : -1, "value" : -1 }, - "network" : "Frontier", + "network" : ["ALL"], "result" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "storage" : { @@ -27,8 +27,50 @@ ], "pre" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { - "//" : "}\t\t\t\t\t\t\t\t\t", "balance" : "100000", + "//": "contract main ", + "//": "{ ", + "//": " bool returnValue; ", + "//": " function run() returns (bool) ", + "//": " { ", + "//": " returnValue = testKeywords(); ", + "//": " return returnValue; ", + "//": " } ", + "//": " ", + "//": " function testKeywords() returns (bool res) ", + "//": " { ", + "//": " //some simple checks for the if statemnt ", + "//": " //if, else, while, for, break, continue, return ", + "//": " int i = 0; ", + "//": " res = false; ", + "//": " ", + "//": " if (i == 0) ", + "//": " { ", + "//": " if( i <= -25) ", + "//": " { ", + "//": " return false; ", + "//": " } ", + "//": " else ", + "//": " { ", + "//": " while(i < 10) ", + "//": " i++; ", + "//": " ", + "//": " if (i == 10) ", + "//": " { ", + "//": " for(var j=10; j>0; j--) ", + "//": " { ", + "//": " i--; ", + "//": " } ", + "//": " } ", + "//": " } ", + "//": " } ", + "//": " ", + "//": " if (i == 0) ", + "//": " return true; ", + "//": " ", + "//": " return false; ", + "//": " } ", + "//": "} ", "code" : "0x7c01000000000000000000000000000000000000000000000000000000006000350463380e439681146037578063c040622614604757005b603d6084565b8060005260206000f35b604d6057565b8060005260206000f35b6000605f6084565b600060006101000a81548160ff0219169083021790555060ff60016000540416905090565b6000808160011560cd575b600a82121560a157600190910190608f565b81600a1460ac5760c9565b50600a5b60008160ff16111560c85760019182900391900360b0565b5b60d5565b6000925060ed565b8160001460e05760e8565b6001925060ed565b600092505b50509056", "nonce" : "0", "storage" : { @@ -58,4 +100,4 @@ ] } } -} \ No newline at end of file +} -- cgit