fix tests, use '$first_answer' to print indentation before errors (#1408)
This commit is contained in:
@@ -29,12 +29,7 @@ fn do_not_duplicate_path_components() {
|
||||
['tests-pl/issue852-throw_e.pl'].\n\
|
||||
halt.\n\
|
||||
",
|
||||
"\
|
||||
caught: e\n \
|
||||
false.\n\
|
||||
caught: e\n \
|
||||
false.\n\
|
||||
",
|
||||
" throw(e)\n false.\n throw(e)\n false.\n",
|
||||
);
|
||||
}
|
||||
|
||||
@@ -170,6 +165,6 @@ fn ignored_constraint() {
|
||||
fn call_0() {
|
||||
load_module_test(
|
||||
"tests-pl/issue831-call0.pl",
|
||||
"caught: error(existence_error(procedure,call/0),call/0)\n",
|
||||
" error(existence_error(procedure,call/0),call/0)\n",
|
||||
);
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ fn hello_world() {
|
||||
fn syntax_error() {
|
||||
load_module_test(
|
||||
"tests-pl/syntax_error.pl",
|
||||
"caught: error(syntax_error(incomplete_reduction),read_term/3:6)\n",
|
||||
" error(syntax_error(incomplete_reduction),read_term/3:6)\n",
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user