Level / abstract-leveldown

An abstract prototype matching the leveldown API.
MIT License
146 stars 53 forks source link

Test deleting with a numeric key #314

Closed plainweaver closed 5 years ago

plainweaver commented 5 years ago

db.get(key[, options][, callback])

The key can be of any type.

vweevers commented 5 years ago

Thanks for contributing and welcome :) but this is already covered by:

https://github.com/Level/abstract-leveldown/blob/af123487c01dc29419b95d1b06445b2ef81e8c04/test/put-get-del-test.js#L117

plainweaver commented 5 years ago

Appreciated for your kindly greeting :)

While I got realized, wondering why they are separated into put-test, get-test, del-test.

vweevers commented 5 years ago

wondering why they are separated into put-test, get-test, del-test.

Those test each method individually; their arguments, serialization, asynchronicity, etc. And the put-get-del-test is kinda like an "integration test" between them.