Change test-resources path to src/test/resources
This commit is contained in:
@ -159,7 +159,7 @@ public class CompilerTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String[] example(String name, String expectedResult) throws IllegalArgumentException {
|
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) {
|
if (in == null) {
|
||||||
throw new IllegalArgumentException("No such example " + name);
|
throw new IllegalArgumentException("No such example " + name);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user