From d02e329218d504930f91f05c3c040e19f19c57c2 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 15 Jul 2013 21:21:14 +0200 Subject: Fix adjoint unit test: test_isApproxWithRef works for positive quantities only. --- test/main.h | 1 + 1 file changed, 1 insertion(+) (limited to 'test/main.h') diff --git a/test/main.h b/test/main.h index 0f55fef71..14f0d2f78 100644 --- a/test/main.h +++ b/test/main.h @@ -270,6 +270,7 @@ inline bool test_isApprox(const Type1& a, const Type2& b) // The idea behind this function is to compare the two scalars a and b where // the scalar ref is a hint about the expected order of magnitude of a and b. +// WARNING: the scalar a and b must be positive // Therefore, if for some reason a and b are very small compared to ref, // we won't issue a false negative. // This test could be: abs(a-b) <= eps * ref -- cgit v1.2.3