Вывод упавшей функции в тестах

This commit is contained in:
Victor 2019-09-24 21:55:12 +03:00
parent 21a4ab2435
commit c1b3ec4c11

View File

@ -127,7 +127,11 @@ public class ProgramsTest {
@Override
public void visit(FunctionDefineStatement s) {
if (s.name.startsWith("test")) {
try {
Functions.get(s.name).execute();
} catch (AssertionError err) {
throw new AssertionError(s.name + ": " + err.getMessage(), err);
}
}
}
};