[Pkg-octave-commit] [SCM] octave-odepkg branch, master, updated. f11695fe025180ce9aa96f5e38112a1f59078958

Thomas Weber thomas.weber.mail at gmail.com
Thu Dec 31 09:38:34 UTC 2009


The following commit has been merged in the master branch:
commit 70295539dde1cea955c9d42b7541d3f2685f979e
Author: Thomas Weber <thomas.weber.mail at gmail.com>
Date:   Wed Dec 30 23:13:16 2009 +0100

    New patch: fix-test

diff --git a/debian/changelog b/debian/changelog
index ead3447..e9ad190 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,8 @@ octave-odepkg (0.6.6-2) UNRELEASED; urgency=low
   * New upstream release
   * Use debian/octave-odepkg.info and debian/octave-odepkg.docs for
     installation of documentation 
+  * New patch: fix-test, taken from upstream SVN. Fixes a problem with NaN vs.
+    Inf in the test suite.
 
  -- Rafael Laboissiere <rafael at debian.org>  Sun, 07 Jun 2009 21:06:51 +0200
 
diff --git a/debian/patches/fix-test b/debian/patches/fix-test
new file mode 100644
index 0000000..7af181f
--- /dev/null
+++ b/debian/patches/fix-test
@@ -0,0 +1,12 @@
+Upgrade the test suite to SVN rev 5976, in order to fix a test
+--- a/inst/odepkg_testsuite_calcmescd.m
++++ b/inst/odepkg_testsuite_calcmescd.m
+@@ -47,7 +47,7 @@
+ %! odepkg_testsuite_calcmescd ([1 + 1e10, 2 + 1e10, 3 + 1e10], [1, 2, 3], ...
+ %!   [1e-3, 1e-4, 1e-5], [1e-6, 1e-6, 1e-6])
+ 
+-%!assert (odepkg_testsuite_calcmescd ([1, 2, 3], [1, 2, 3], NaN, NaN), NaN);
++%!assert (odepkg_testsuite_calcmescd ([1, 2, 3], [1, 2, 3], NaN, NaN), Inf);
+ %!assert (odepkg_testsuite_calcmescd ([1, 2, 3], [1, 2, 3], 1, 1), Inf);
+ %!assert (odepkg_testsuite_calcmescd ([1, 2, 3], [1, 2.1, 3], 1, 1), 1.5, 0.1);
+ %!assert (odepkg_testsuite_calcmescd ([1, 2, 3], [1+1e-6, 2, 3], 1, 1), 6.5, 0.2);
diff --git a/debian/patches/series b/debian/patches/series
index 9262944..881ce43 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+fix-test
 info-dir-section.diff

-- 
octave-odepkg



More information about the Pkg-octave-commit mailing list