# HG changeset patch # User Rik # Date 1411867187 25200 # Node ID a6d44158bc6d148552ca66a356ca4862cdd232fa # Parent 1faae07afbd8e01934abde27237883ef9f8da60c __gripe_missing_component__.m: Add BIST tests. * __gripe_missing_component__.m: Add BIST tests. diff -r 1faae07afbd8 -r a6d44158bc6d scripts/help/__gripe_missing_component__.m --- a/scripts/help/__gripe_missing_component__.m Sat Sep 27 13:41:57 2014 -0700 +++ b/scripts/help/__gripe_missing_component__.m Sat Sep 27 18:19:47 2014 -0700 @@ -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 __gripe_missing_component__ ("abc", "info-file") +%!error __gripe_missing_component__ ("abc", "octave") +%!error __gripe_missing_component__ ("abc", "octave-config") +%!error __gripe_missing_component__ ("abc", "xyz") + +%!error __gripe_missing_component__ () +%!error __gripe_missing_component__ ("fcn") +%!error __gripe_missing_component__ ("fcn", 1 , 2) +