Skip to content

Commit

Permalink
add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bodono committed Jul 2, 2024
1 parent 2945cba commit d2eb50a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions test/problems/mpc_bug.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
#include "scs.h"

static const char *mpc_bug(void) {
scs_float OPT = -0.473957794500; /* from scs */
return _test_prob_from_data("test/problems/mpc_bug", OPT);
const char *fail;
scs_float OPT1 = -0.473957794500; /* from scs */
scs_float OPT2 = -0.029336830816; /* from scs */
scs_float OPT3 = -0.002215217478; /* from scs */
fail = _test_prob_from_data("test/problems/mpc_bug1", OPT1);
if (fail) {
return fail;
}
fail = _test_prob_from_data("test/problems/mpc_bug2", OPT2);
if (fail) {
return fail;
}
return _test_prob_from_data("test/problems/mpc_bug3", OPT3);
}
File renamed without changes.
Binary file added test/problems/mpc_bug2
Binary file not shown.
Binary file added test/problems/mpc_bug3
Binary file not shown.

0 comments on commit d2eb50a

Please sign in to comment.