Additionally I like roundtrip tests.
For example we have two data formats and support conversion between both of them.
So I have tests that convert from A to B and back to A. Then I can go and call assertEquals on them.
It’s a very cheap test, that tests all functionality of the conversion itself.
Additionally I like roundtrip tests.
For example we have two data formats and support conversion between both of them.
So I have tests that convert from A to B and back to A. Then I can go and call assertEquals on them.
It’s a very cheap test, that tests all functionality of the conversion itself.