Mercurial > hg > octave-lyh
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 +++ b/scripts/help/unimplemented.m @@ -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"); + +