Mercurial > hg > octave-nkf
changeset 19362:a6d44158bc6d
__gripe_missing_component__.m: Add BIST tests.
* __gripe_missing_component__.m: Add BIST tests.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 27 Sep 2014 18:19:47 -0700 |
parents | 1faae07afbd8 |
children | 702aa79dc482 |
files | scripts/help/__gripe_missing_component__.m |
diffstat | 1 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/help/__gripe_missing_component__.m +++ b/scripts/help/__gripe_missing_component__.m @@ -46,7 +46,7 @@ case "octave-config" msg = "unable to find the octave-config command, Octave installation is incomplete"; otherwise - msg = ["unable to find required Octave component \"" component "\""]; + msg = ['unable to find required Octave component "' component '"']; endswitch endif @@ -54,3 +54,14 @@ endfunction + +## Some trivial testing +%!error <abc: unable to find the Octave info manual> __gripe_missing_component__ ("abc", "info-file") +%!error <abc: unable to find the octave executable> __gripe_missing_component__ ("abc", "octave") +%!error <abc: unable to find the octave-config command> __gripe_missing_component__ ("abc", "octave-config") +%!error <abc: unable to find required Octave component "xyz"> __gripe_missing_component__ ("abc", "xyz") + +%!error __gripe_missing_component__ () +%!error __gripe_missing_component__ ("fcn") +%!error __gripe_missing_component__ ("fcn", 1 , 2) +