Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Delete Tests
...
def test_delete_happy_path
db = Database.new
db.set "Tufted", "Titmouse"
assert_equal("Titmouse", db.get("Tufted"))
db.delete "Tufted"
assert_equal("NULL", db.get("Tufted"))
end
def test_delete_absent_key
db = Database.new
assert_equal("That key isn't in the database!", db.delete("NoKey"))
end
...
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.