hecatia-elegua / bilge

Use bitsized types as if they were a feature of rust.
Apache License 2.0
171 stars 17 forks source link

Add tests *now* - start with frontend #20

Closed hecatia-elegua closed 1 year ago

hecatia-elegua commented 1 year ago

I've thought about rewriting (more like copy-pasting together) the whole thing with TDD. Maybe that's a bit too extreme, will have to time how long part of that takes and estimate. One nice effect this would have is better commit messages, since early history is missing in the current version. If it's not helpful I can just take the tests I will have written back to the current version.

hecatia-elegua commented 1 year ago

Also imagine tests like this: #26

hecatia-elegua commented 1 year ago

better commit messages, since early history is missing in the current version.

Yeah and also there wouldn't be any intermediate history, so no mistakes in the history, which sucks because it helps to have these documented. Anyways, tests are basically done, maybe with a few edge cases left we can't think of. New features should now ship with their tests or at least only release (on crates.io) after they're tested.