Created
May 23, 2019 04:23
-
-
Save chelseatroy/64e108435949f75b41ff0b18370e9507 to your computer and use it in GitHub Desktop.
Count Tests
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 test_count_happy_path | |
db = Database.new | |
db.set "Snowy", "Owl" | |
assert_equal(1, db.count("Owl")) | |
db.set "GreatHorned", "Owl" | |
assert_equal(2, db.count("Owl")) | |
end | |
def test_count_no_value | |
db = Database.new | |
assert_equal(0, db.count("NoKey")) | |
end | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment