aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/main.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2013-07-15 21:21:14 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2013-07-15 21:21:14 +0200
commitd02e329218d504930f91f05c3c040e19f19c57c2 (patch)
treee9af8c858c10f04c49939d7f82f06ddc42092cf8 /test/main.h
parentc76990664bcc8647eb321105067af9ced86d4959 (diff)
Fix adjoint unit test: test_isApproxWithRef works for positive quantities only.
Diffstat (limited to 'test/main.h')
-rw-r--r--test/main.h1
1 files changed, 1 insertions, 0 deletions
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