|
|
|
|
|
by kislotnik
3734 days ago
|
|
Write a damn unit test for your padding function. We should share unit tests, not one-line libs.
Libs with unit tests can be one-liners and be as fine-grained as we like, since it's something your users don't have to download |
|
Most of the small libs I've shared are mainly sharing unit tests.
Here's a function I've shared on npm:
The tests: