diff --git a/cpp/Testable.h b/cpp/Testable.h index f79d31d55..7a0ce98b3 100644 --- a/cpp/Testable.h +++ b/cpp/Testable.h @@ -40,12 +40,12 @@ namespace gtsam { * This template works for any type with equals */ template - 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)) return true; printf("Not equal:\n"); - actual.print("actual"); expected.print("expected"); + actual.print("actual"); return false; }