From 7a968962dbe09b5798567c438440744ff8f5c910 Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Sun, 25 Oct 2009 22:26:56 +0000 Subject: [PATCH] Order of arguments = expected, then actual --- cpp/Testable.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }