diff --git a/cs50/2019/x/caesar/check50/__init__.py b/cs50/2019/x/caesar/check50/__init__.py index 2e463d8..7a647a9 100644 --- a/cs50/2019/x/caesar/check50/__init__.py +++ b/cs50/2019/x/caesar/check50/__init__.py @@ -47,3 +47,15 @@ def checks_for_handling_non_alpha(self): def handles_no_argv(self): """handles lack of argv[1]""" self.spawn("./caesar").exit(1) + + @check("compiles") + def toomanyargs(self): + """handles argc > 2""" + self.spawn("./caesar 1 2 3").exit(1) + + @check("compiles") + def rejects_non_numeric(self): + """rejects non-numeric argv[1]""" + self.spawn("./caesar 2a!").exit(1) + +