Skip to content

Commit

Permalink
Add extra logging for diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
LadyCailin committed Dec 20, 2018
1 parent 16ec009 commit 50f4612
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/test/java/com/laytonsmith/testing/RandomTests.java
Expand Up @@ -347,11 +347,16 @@ public void done(String output) {

@Test
public void testVoidAndReturnedVoidAreTheExactSame() throws Exception {
Environment env = Static.GenerateStandaloneEnvironment(false);
Mixed returnedVoid = new ArrayHandling.array_insert().exec(Target.UNKNOWN, env,
C.Array(), C.String(""), C.Int(0));
Construct voidKeyword = Static.resolveConstruct("void", Target.UNKNOWN);
assertTrue(returnedVoid == voidKeyword);
try {
Environment env = Static.GenerateStandaloneEnvironment(false);
Mixed returnedVoid = new ArrayHandling.array_insert().exec(Target.UNKNOWN, env,
C.Array(), C.String(""), C.Int(0));
Construct voidKeyword = Static.resolveConstruct("void", Target.UNKNOWN);
assertTrue(returnedVoid == voidKeyword);
} catch (Exception e) {
e.printStackTrace(System.err);
throw e;
}
}

@Test
Expand Down

0 comments on commit 50f4612

Please sign in to comment.