1
Description: Make the unit testing for partcnt succeed
2
The partcnt function is defined in the partint.cc file, hence it is necessary
3
to run the autoload comamnd first. This is needed only when building the
4
Debian package, since the autoload command is run through the PKG_ADD file for
5
the installed octave-miscellaneous package.
6
Author: Rafael Laboissiere <rafael@laboissiere.net>
8
Last-Update: 2012-10-17
10
--- octave-miscellaneous-1.2.0.orig/src/partint.cc
11
+++ octave-miscellaneous-1.2.0/src/partint.cc
12
@@ -110,11 +110,13 @@ Joerg Arndt: Algorithms for programmers
16
-%!assert(partcnt(1), 1);
17
-%!assert(partcnt(17), 297);
18
-%!fail("partcnt()", "partcnt");
19
-%!fail("partcnt(1,2)", "partcnt");
20
-%!fail("partcnt('xyz')", "partcnt");
22
+%! autoload ("partcnt", "partint.oct")
23
+%! assert(partcnt(1), 1);
24
+%! assert(partcnt(17), 297);
25
+%! fail("partcnt()", "partcnt");
26
+%! fail("partcnt(1,2)", "partcnt");
27
+%! fail("partcnt('xyz')", "partcnt");
29
%! p = partcnt([1, 5; 17 -5])