[fityk] 01/02: Cherry-pick test suite fix
Stuart Prescott
stuart at debian.org
Tue Sep 26 08:16:51 UTC 2017
This is an automated email from the git hooks/post-receive script.
stuart pushed a commit to branch master
in repository fityk.
commit b6973aa5c580c0b6c5fac323010f0d3c03d5c924
Author: Stuart Prescott <stuart at debian.org>
Date: Tue Sep 26 13:06:36 2017 +1000
Cherry-pick test suite fix
https://github.com/wojdyr/fityk/commit/9684b96e336ae7c926d70dbccf03f1618eee7433
Closes: 876776
---
debian/patches/float-approx.patch | 23 +++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 24 insertions(+)
diff --git a/debian/patches/float-approx.patch b/debian/patches/float-approx.patch
new file mode 100644
index 0000000..3cfa7da
--- /dev/null
+++ b/debian/patches/float-approx.patch
@@ -0,0 +1,23 @@
+From 9684b96e336ae7c926d70dbccf03f1618eee7433 Mon Sep 17 00:00:00 2001
+From: Marcin Wojdyr <wojdyr at gmail.com>
+Date: Mon, 25 Sep 2017 20:51:12 +0100
+Subject: [PATCH] blind fix for test failure
+
+https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=876776
+---
+ tests/psvoigt.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/psvoigt.cpp b/tests/psvoigt.cpp
+index 0e676d6a..32cb1cdb 100644
+--- a/tests/psvoigt.cpp
++++ b/tests/psvoigt.cpp
+@@ -47,7 +47,7 @@ TEST_CASE("pseudo-voigt", "") {
+ double H = fik->calculate_expr("%pv.Height");
+ REQUIRE(H == height);
+ double ib = fik->calculate_expr("%pv.IB");
+- REQUIRE(ib == area/height);
++ REQUIRE(ib == Approx(area/height));
+ }
+ const fityk::Func *f = fik->get_function("pv");
+ double at_ctr = f->value_at(center);
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..23901e0
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+float-approx.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/fityk.git
More information about the debian-science-commits
mailing list