Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Count Tests
def test_count_happy_path
db =
db.set "Snowy", "Owl"
assert_equal(1, db.count("Owl"))
db.set "GreatHorned", "Owl"
assert_equal(2, db.count("Owl"))
def test_count_no_value
db =
assert_equal(0, db.count("NoKey"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.