comparison scripts/help/gen_doc_cache.m @ 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 d5bd2766c640
children 72c96de7a403
comparison
equal deleted inserted replaced
13066:756af8385e26 13067:875577a19d70
30 ## 30 ##
31 ## @seealso{lookfor, path} 31 ## @seealso{lookfor, path}
32 ## @end deftypefn 32 ## @end deftypefn
33 33
34 function gen_doc_cache (out_file = "doc-cache", directory = []) 34 function gen_doc_cache (out_file = "doc-cache", directory = [])
35
35 ## Check input 36 ## Check input
36 if (!ischar (out_file)) 37 if (!ischar (out_file))
37 print_usage (); 38 print_usage ();
38 endif 39 endif
39 40
141 list = {operators{:}, keywords{:}, builtins{:}}; 142 list = {operators{:}, keywords{:}, builtins{:}};
142 143
143 cache = create_cache (list); 144 cache = create_cache (list);
144 endfunction 145 endfunction
145 146
147
148 %% No true tests desirable for this function.
149 %% Test input validation
150 %!error gen_doc_cache (1)
151