I see tests as executable documentation/specification. TDD reinforces that view.
i.e. rust even has the specification of parts of its functionality using asserts (in the docs):
https://doc.rust-lang.org/stable/std/vec/struct.Vec.html#exa...
i.e. rust even has the specification of parts of its functionality using asserts (in the docs):
https://doc.rust-lang.org/stable/std/vec/struct.Vec.html#exa...
No comments yet.