Help save net neutrality! Learn more.
Close

Diff of /src/syndtable.cc [f62e8c] .. [b92126]  Maximize  Restore

Switch to side-by-side view

--- a/src/syndtable.cc
+++ b/src/syndtable.cc
@@ -76,7 +76,7 @@
 
   if (nargin != 1)
     {
-      error ("syndtable: incorrect number of arguments");
+      print_usage ();
       return retval;
     }
 
@@ -156,3 +156,10 @@
   retval = octave_value (table);
   return retval;
 }
+
+/*
+%% Test input validation
+%!error syndtable ()
+%!error syndtable (1, 2)
+%!error syndtable ([1 2])
+*/