Merge pull request #205 from 8aff8265aa/master
Correct stSystemOperationsTest run with programCode.length protection
This commit is contained in:
commit
fc7f18104e
|
@ -389,6 +389,11 @@ public class Program {
|
|||
return;
|
||||
}
|
||||
|
||||
if (programCode.length == 0) {
|
||||
result = new ProgramResult();
|
||||
result.setHReturn(new byte[] {});
|
||||
}
|
||||
|
||||
// 4. CREATE THE CONTRACT OUT OF RETURN
|
||||
byte[] code = result.getHReturn().array();
|
||||
|
||||
|
|
|
@ -104,10 +104,6 @@ public class GitHubStateTest {
|
|||
public void stSystemOperationsTest() throws ParseException {
|
||||
|
||||
Set<String> excluded = new HashSet<>();
|
||||
excluded.add("createNameRegistratorZeroMem2");
|
||||
excluded.add("createNameRegistratorZeroMem");
|
||||
excluded.add("createNameRegistratorZeroMemExpansion");
|
||||
|
||||
|
||||
String json = JSONReader.loadJSON("StateTests/stSystemOperationsTest.json");
|
||||
GitHubJSONTestSuite.runGitHubJsonStateTest(json, excluded);
|
||||
|
|
Loading…
Reference in New Issue