Change test-resources path to src/test/resources
This commit is contained in:
parent
f47967577d
commit
11f227e203
@ -159,7 +159,7 @@ public class CompilerTest {
|
||||
}
|
||||
|
||||
private String[] example(String name, String expectedResult) throws IllegalArgumentException {
|
||||
try (InputStream in = CompilerTest.class.getClassLoader().getResourceAsStream("examples/" + name)) {
|
||||
try (InputStream in = getClass().getResourceAsStream("/examples/" + name)) {
|
||||
if (in == null) {
|
||||
throw new IllegalArgumentException("No such example " + name);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user