Skip to content

tests: Fix tests on non-x86_64 platforms.

On platform other than x86_64 such as aarch64-linux or i686-linux, some double comparison would fail.

See http://issues.guix.gnu.org/41827.

  • tests/bezier-test.cpp: (Casteljau): Replace EXPECT_EQ by EXPECT_near. (Subdivide): Replace EXPECT_EQ by EXPECT_DOUBLE_EQ. (Portion): Replace EXPECT_EQ by EXPECT_near.
  • tests/ellipse-test.cpp (BezierIntersection): Lower error tolerance from 6e-13 to 6e-12.
  • tests/line-test.cpp (Reflection): Replace EXPECT_FLOAT_EQ BY EXPECT_near. (Coefficients): Skip test.
  • tests/parallelogram-test.cpp (area): Replace EXPECT_EQ by EXPECT_DOUBLE_EQ.

Merge request reports