Let's say I want to write a function that validates an email address
with a regex. I write a little test to check my function and write the
actual function. Make it pass.
However, I can come up with a bunch of different ways to test the same
function (
[email protected];
[email protected]; test.test.com, etc).
Do I put all the incantations that I need to check in the same,
single
test with several ASSERTS or do I write a new test for every
single
thing I can think of?
Thanks!