Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion shirt/.cs50.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,27 @@ submit50:
- !exclude "*"
- !require shirt.py
style: false

check50:
files: *submit50_files

checks:
- name: "rejects missing output argument"
run: python shirt.py input.png
exit: 1

- name: "rejects extra arguments"
run: python shirt.py a.png b.png c.png
exit: 1

- name: "rejects non-image input"
run: python shirt.py input.txt output.png
exit: 1

- name: "rejects non-image output"
run: python shirt.py input.png output.txt
exit: 1

- name: "rejects mismatched extensions"
run: python shirt.py input.jpg output.png
exit: 1