AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
How to Write Tests for a Dark Package
Every handle needs its own suite of tests. Every single handle has eight or sorry, four different resize modes. Each resize mode needs to be checked against each corner of a clamping rect and against constraints - both at the same time. Even if you wanted to write tests first, it would simply be unrealistic and impractical. It would be impossible even. So generating the test, we actually generated... We generated or he, Berjo wrote or generated 200 tests to get complete coverage. For the dark package and resizing, yes, we don't have stairs for bragging since it is so simple, we never bought them yet. But yeah, for resizing it, it covers everything. Every single