Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /inst/decode.m [67ecc4] .. [f62e8c] Maximize Restore

  Switch to side-by-side view

--- a/inst/decode.m
+++ b/inst/decode.m
@@ -284,3 +284,12 @@
   endif
 
 endfunction
+
+%% Test input validation
+%!error decode ()
+%!error decode (1)
+%!error decode (1, 2)
+%!error decode (1, 2, 3, 4, 5, 6, 7)
+%!error decode (1, 2, 3)
+%!error decode (1, 5, 6)
+%!error decode (1, 5, 3, "invalid")