Order of arguments = expected, then actual
parent
57bc102548
commit
7a968962db
|
@ -40,12 +40,12 @@ namespace gtsam {
|
||||||
* This template works for any type with equals
|
* This template works for any type with equals
|
||||||
*/
|
*/
|
||||||
template<class V>
|
template<class V>
|
||||||
bool assert_equal(const V& actual, const V& expected, double tol = 1e-9) {
|
bool assert_equal(const V& expected, const V& actual, double tol = 1e-9) {
|
||||||
if (actual.equals(expected, tol))
|
if (actual.equals(expected, tol))
|
||||||
return true;
|
return true;
|
||||||
printf("Not equal:\n");
|
printf("Not equal:\n");
|
||||||
actual.print("actual");
|
|
||||||
expected.print("expected");
|
expected.print("expected");
|
||||||
|
actual.print("actual");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue