Skip to content

Commit 3dedef1

Browse files
committed
small refactoring
1 parent 2c0b265 commit 3dedef1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/eval/evaluator.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -193,15 +193,15 @@ std::pair<status_t, steps_t> Evaluator::check(const Program &p,
193193
return result;
194194
}
195195
}
196-
// check the result if the evaluation was successful
197-
if (result.first == status_t::OK && out != expected_seq[i]) {
198-
if (settings.print_as_b_file) {
199-
printb(index, out.to_string() + " -> expected " +
200-
expected_seq[i].to_string());
201-
}
202-
result.first = status_t::ERROR;
203-
return result;
196+
}
197+
// check the result if the evaluation was successful
198+
if (result.first == status_t::OK && out != expected_seq[i]) {
199+
if (settings.print_as_b_file) {
200+
printb(index,
201+
out.to_string() + " -> expected " + expected_seq[i].to_string());
204202
}
203+
result.first = status_t::ERROR;
204+
return result;
205205
}
206206
// check the range
207207
if (check_range && !range.check(expected_seq[i])) {

0 commit comments

Comments
 (0)