mirror of
https://github.com/aNNiMON/Own-Programming-Language-Tutorial.git
synced 2024-09-20 08:44:20 +03:00
Вывод упавшей функции в тестах
This commit is contained in:
parent
21a4ab2435
commit
c1b3ec4c11
@ -127,7 +127,11 @@ public class ProgramsTest {
|
|||||||
@Override
|
@Override
|
||||||
public void visit(FunctionDefineStatement s) {
|
public void visit(FunctionDefineStatement s) {
|
||||||
if (s.name.startsWith("test")) {
|
if (s.name.startsWith("test")) {
|
||||||
|
try {
|
||||||
Functions.get(s.name).execute();
|
Functions.get(s.name).execute();
|
||||||
|
} catch (AssertionError err) {
|
||||||
|
throw new AssertionError(s.name + ": " + err.getMessage(), err);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user