Permalink
Browse files

Add extra logging for diagnostics

  • Loading branch information...
LadyCailin committed Dec 20, 2018
1 parent 16ec009 commit 50f46129dc86d5d51825b6928c81ca98811ab28f
Showing with 10 additions and 5 deletions.
  1. +10 −5 src/test/java/com/laytonsmith/testing/RandomTests.java
@@ -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

0 comments on commit 50f4612

Please sign in to comment.