DEV Community

Discussion on: ELI5: Useful Unit Testing

Collapse
 
deciduously profile image
Ben Lovy

Thanks for your answer!

I think you're right, my mental picture of testing is likely blurry. Something like a FromStr implementation on a specific struct is easy, or really any pure function where I know what I should get out given a specific input. Most of my tests are this variety, trying a bunch of "edge case-y" strings, and I get stuck outside of that. It makes sense that this is at heart an architectural issue, this is good food for thought.