Created
February 28, 2018 20:48
-
-
Save meejah/4453531267b14956d5c26497da616cfb to your computer and use it in GitHub Desktop.
coverage-example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def do_stuff(arg): | |
if arg == 1 or arg == 2: | |
return "flarg" | |
return "glumphy" | |
def test_a(): | |
assert do_stuff(1) == "flarg" | |
def test_b(): | |
assert do_stuff(99) == "glumphy" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment