changeset 13067:875577a19d70

codesprint: Add 1 input validation test for gen_doc_cache() gen_doc_cache.m: Add 1 input validation test.
author Rik <octave@nomad.inbox5.com>
date Sat, 03 Sep 2011 12:07:05 -0700
parents 756af8385e26
children 542891ebfcdb
files scripts/help/gen_doc_cache.m
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/help/gen_doc_cache.m	Sat Sep 03 12:02:19 2011 -0700
+++ b/scripts/help/gen_doc_cache.m	Sat Sep 03 12:07:05 2011 -0700
@@ -32,6 +32,7 @@
 ## @end deftypefn
 
 function gen_doc_cache (out_file = "doc-cache", directory = [])
+
   ## Check input
   if (!ischar (out_file))
     print_usage ();
@@ -143,3 +144,8 @@
   cache = create_cache (list);
 endfunction
 
+
+%% No true tests desirable for this function.
+%% Test input validation
+%!error gen_doc_cache (1)
+