changeset 12835:0e65376cc44b

codesprint: Add 3 tests for unimplemented.m * unimplemented.m: Add 3 tests.
author Rik <octave@nomad.inbox5.com>
date Sat, 16 Jul 2011 14:40:41 -0700
parents a12569d5906e
children e9b4de878a9c
files scripts/help/unimplemented.m
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/help/unimplemented.m	Sat Jul 16 17:37:31 2011 -0400
+++ b/scripts/help/unimplemented.m	Sat Jul 16 14:40:41 2011 -0700
@@ -426,3 +426,14 @@
   "zoom",
   };
 endfunction
+
+
+%!test
+%! str = unimplemented ("no_name_function");
+%! assert (isempty (str));
+%! str = unimplemented ("quad2d");
+%! assert (str(1:51), "quad2d is not implemented.  Consider using dblquad.");
+%! str = unimplemented ("MException");
+%! assert (str(1:58), "the `MException' function is not yet implemented in Octave");
+
+