Count Tests
... | |
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