--- a/inst/cosets.m
+++ b/inst/cosets.m
@@ -51,3 +51,7 @@
   endwhile
 
 endfunction
+
+%% Test input validation
+%!error cosets ()
+%!error cosets (1, 2, 3)