[ignition-math2] 02/03: Relax the error margin expected in Line test (Closes: #789826)

Jose Luis Rivero jrivero-guest at moszumanska.debian.org
Thu Sep 17 22:15:10 UTC 2015


This is an automated email from the git hooks/post-receive script.

jrivero-guest pushed a commit to branch master
in repository ignition-math2.

commit 6cb5a6760e81743f37b8c36f1862e4d376e25cc4
Author: Jose Luis Rivero <jrivero at osrfoundation.org>
Date:   Tue Aug 25 11:39:19 2015 +0000

    Relax the error margin expected in Line test (Closes: #789826)
    
    Patch by Mathieu Trudel-Lapierre
---
 debian/patches/0003_fix_collinear_boundary.patch | 30 ++++++++++++++++++++++++
 debian/patches/series                            |  1 +
 2 files changed, 31 insertions(+)

diff --git a/debian/patches/0003_fix_collinear_boundary.patch b/debian/patches/0003_fix_collinear_boundary.patch
new file mode 100644
index 0000000..c669bab
--- /dev/null
+++ b/debian/patches/0003_fix_collinear_boundary.patch
@@ -0,0 +1,30 @@
+From: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre at canonical.com>
+Subject: Allow for a bit more rounding when verifying collinearity
+Submitted: No
+
+---
+ src/Line2_TEST.cc |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+Index: b/src/Line2_TEST.cc
+===================================================================
+--- a/src/Line2_TEST.cc
++++ b/src/Line2_TEST.cc
+@@ -147,7 +147,7 @@ TEST(Line2Test, CollinearPoint)
+ 
+   pt.Set(0, 0.00001);
+   EXPECT_FALSE(lineA.Collinear(pt));
+-  EXPECT_TRUE(lineA.Collinear(pt, 1e-4));
++  EXPECT_TRUE(lineA.Collinear(pt, 1e-3));
+   {
+     math::Line2d ptLine(pt, pt);
+     EXPECT_FALSE(lineA.Collinear(ptLine));
+@@ -159,7 +159,7 @@ TEST(Line2Test, CollinearPoint)
+ 
+   pt.Set(0, -0.00001);
+   EXPECT_FALSE(lineA.Collinear(pt));
+-  EXPECT_TRUE(lineA.Collinear(pt, 1e-4));
++  EXPECT_TRUE(lineA.Collinear(pt, 1e-3));
+   {
+     math::Line2d ptLine(pt, pt);
+     EXPECT_FALSE(lineA.Collinear(ptLine));
diff --git a/debian/patches/series b/debian/patches/series
index d873eff..c937450 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 0001-c++11-unconditional.patch
 0002_use_system_gtest.patch
+0003_fix_collinear_boundary.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/ignition-math2.git



More information about the debian-science-commits mailing list