# HG changeset patch # User Rik # Date 1310852441 25200 # Node ID 0e65376cc44b392265e0f1a4513b38fbf5ffcec8 # Parent a12569d5906edafd5582164046ef45cf32bf1947 codesprint: Add 3 tests for unimplemented.m * unimplemented.m: Add 3 tests. diff -r a12569d5906e -r 0e65376cc44b scripts/help/unimplemented.m --- 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"); + +