├── hello ├── .cs50.yml └── __init__.py └── hello_simple └── .cs50.yml /hello/.cs50.yml: -------------------------------------------------------------------------------- 1 | check50: true 2 | submit50: true 3 | -------------------------------------------------------------------------------- /hello/__init__.py: -------------------------------------------------------------------------------- 1 | import check50 2 | import check50.c 3 | 4 | @check50.check() 5 | def compiles(): 6 | """hello compiles""" 7 | check50.run("clang hello.c -o hello").exit(0) 8 | 9 | @check50.check(compiles) 10 | def prints_hello(): 11 | """prints exactly hello world""" 12 | check50.run("./hello").stdout("hello world").exit(0) 13 | -------------------------------------------------------------------------------- /hello_simple/.cs50.yml: -------------------------------------------------------------------------------- 1 | check50: 2 | checks: 3 | prints hello: 4 | - run: clang hello.c -o hello 5 | exit: 0 6 | - run: ./hello 7 | stdout: hello world 8 | exit: 0 9 | submit50: true 10 | --------------------------------------------------------------------------------