alexei / sprintf.js

sprintf.js is a complete open source JavaScript sprintf implementation
BSD 3-Clause "New" or "Revised" License
2.11k stars 291 forks source link

Missing unit tests for specifiers: a, A, E, F #189

Open ashwalk33r opened 4 years ago

ashwalk33r commented 4 years ago

https://github.com/alexei/sprintf.js/blob/master/test/test.js

Does not contain tests for specifiers:

All other specifiers(as in http://www.cplusplus.com/reference/cstdio/printf/) are at least once occuring in tests. It does not mean those have good coverage. This issue simply reports that while some specifiershave some tests, the reported have none.

What about creating validation https://github.com/alexei/sprintf.js/blob/master/test/test_validation.js to determine if all specifiers are tested?