Skip to content

Commit

Permalink
update test_util.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ManifoldFR committed Oct 17, 2024
1 parent 04dd502 commit f432b2f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/gar/test_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,9 @@ problem_t generate_problem(const ConstVectorRef &x0, uint horz, uint nx,
auto fmt::formatter<KktError>::format(const KktError &err,
format_context &ctx) const
-> format_context::iterator {
std::string s;
s = fmt::format("> max: {:.3e}\n", err.max);
s += fmt::format("> dual: {:.3e}, cstr: {:.3e}, dyn: {:.3e}\n", err.dual,
err.cstr, err.dyn);
std::string s = fmt::format(
"{{ max: {:.3e}, dual: {:.3e}, cstr: {:.3e}, dyn: {:.3e} }}\n", err.max,
err.dual, err.cstr, err.dyn);
return formatter<std::string>::format(s, ctx);
}

Expand Down

0 comments on commit f432b2f

Please sign in to comment.