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