Skip to content

Commit

Permalink
fix test execution
Browse files Browse the repository at this point in the history
  • Loading branch information
Frotty committed Aug 8, 2018
1 parent a4c2786 commit af520ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Expand Up @@ -4,6 +4,9 @@
import de.peeeq.wurstscript.utils.Utils;
import org.testng.annotations.Test;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Collections;
import java.util.Map;

Expand Down Expand Up @@ -114,18 +117,17 @@ public void thisAsVarNameInJass() { // #498
}

@Test
public void testBigjassScript() { // #498
String jassCode = Utils.getResourceFile("test.j");
public void testBigJassScript() throws IOException {
String jassCode = new String(Files.readAllBytes(Paths.get(Utils.getResourceFile("test.j"))));

String jurstCode = Utils.string(
"package test",
" native testSuccess()",
" init",
" testSuccess()",
" end",
"endpackage");

testJurstWithJass(true, false, jassCode, jurstCode);
testJurstWithJass(false, true, jassCode, jurstCode);
}

@Test
Expand Down
1 change: 0 additions & 1 deletion de.peeeq.wurstscript/src/test/resources/test.j
Expand Up @@ -2220,7 +2220,6 @@ unit DummyRecycler_gettempReturn=null
timer getTimertempReturn=null
unit createUnittempReturn=null
endglobals
native UnitAlive takes unit id returns boolean
function error takes string msg returns nothing
call BJDebugMsg(msg)
endfunction
Expand Down

0 comments on commit af520ab

Please sign in to comment.