[Pkg-octave-commit] [octave-splines] 04/05: d/p/relax-tps-val-unit-test.patch: New patch
Rafael Laboissière
rlaboiss-guest at moszumanska.debian.org
Thu Dec 10 00:05:57 UTC 2015
This is an automated email from the git hooks/post-receive script.
rlaboiss-guest pushed a commit to branch master
in repository octave-splines.
commit 67e1e98871be57a29c5d626ff03d12117a487b04
Author: Rafael Laboissiere <rafael at laboissiere.net>
Date: Wed Dec 9 16:37:38 2015 -0200
d/p/relax-tps-val-unit-test.patch: New patch
---
debian/patches/relax-tps-val-unit-test.patch | 21 +++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 22 insertions(+)
diff --git a/debian/patches/relax-tps-val-unit-test.patch b/debian/patches/relax-tps-val-unit-test.patch
new file mode 100644
index 0000000..d62c60d
--- /dev/null
+++ b/debian/patches/relax-tps-val-unit-test.patch
@@ -0,0 +1,21 @@
+Description: Fix failing unit test for the tps_val function
+ All unit tests worked correctly in version 1.2.8 of the package, but
+ one of the unit tests for tpsval fails in version 1.2.9.
+ Essentially, it relaxes the tolerance for the call to assert when
+ comparing the output values produced by both tpaps and tps_val.
+Author: Rafael Laboissiere <rafael at laboissiere.net>
+Bug: https://savannah.gnu.org/bugs/index.php?46644
+Forwarded: not-needed
+Last-Update: 2015-12-09
+
+--- octave-splines-1.2.9.orig/inst/tps_val.m
++++ octave-splines-1.2.9/inst/tps_val.m
+@@ -79,7 +79,7 @@ endfunction
+ %!shared x,y,c,xi
+ %! x = ([1:10 10.5 11.3])'; y = sin(x);
+ %! c = tpaps(x,y,1);
+-%!assert (tpaps(x,y,1,x), tps_val(x,c,x));
++%!assert (tpaps(x,y,1,x), tps_val(x,c,x), 100*eps);
+ %! x = rand(100, 2)*2 - 1;
+ %! y = x(:, 1) .^ 2 + x(:, 2) .^ 2;
+ %! c = tpaps(x,y,1);
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..eab511a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+relax-tps-val-unit-test.patch
--
Alioth's /home/groups/pkg-octave/bin/git-commit-notice on /srv/git.debian.org/git/pkg-octave/octave-splines.git
More information about the Pkg-octave-commit
mailing list