diff --git a/hello/.cs50.yml b/me/.cs50.yml similarity index 100% rename from hello/.cs50.yml rename to me/.cs50.yml diff --git a/hello/__init__.py b/me/__init__.py similarity index 61% rename from hello/__init__.py rename to me/__init__.py index c0c91a83..6f0108f5 100644 --- a/hello/__init__.py +++ b/me/__init__.py @@ -17,6 +17,11 @@ def emma(): check50.run("./hello").stdin("Emma").stdout("Emma").exit() @check50.check(compiles) -def rodrigo(): - """responds to name Rodrigo""" - check50.run("./hello").stdin("Rodrigo").stdout("Rodrigo").exit() +def inno(): + """responds to name Inno""" + check50.run("./hello").stdin("Inno").stdout("Inno").exit() + +@check50.check(compiles) +def kamryn(): + """responds to name Kamryn""" + check50.run("./hello").stdin("Kamryn").stdout("Kamryn").exit() diff --git a/world/.cs50.yml b/world/.cs50.yml new file mode 100644 index 00000000..5faa89bd --- /dev/null +++ b/world/.cs50.yml @@ -0,0 +1,7 @@ +check50: + files: &check50_files + - !exclude "*" + - !require hello.c + +submit50: + files: *check50_files diff --git a/world/__init__.py b/world/__init__.py new file mode 100644 index 00000000..d22fd785 --- /dev/null +++ b/world/__init__.py @@ -0,0 +1,17 @@ +import check50 +import check50.c + +@check50.check() +def exists(): + """hello.c exists""" + check50.exists("hello.c") + +@check50.check(exists) +def compiles(): + """hello.c compiles""" + check50.c.compile("hello.c", lcs50=True) + +@check50.check(compiles) +def world(): + """hello.c prints \"hello, world\"""" + check50.run("./hello").stdout("hello, world").exit()