3 ms·
"A foolish consistency is the hobgoblin of little minds" - whoever I definitely write tests with multiple assertions, the rule I try to follow is that the tes
by zzzeek 4y ago
"A foolish consistency is the hobgoblin of little minds"
- whoever
I definitely write tests with multiple assertions, the rule I try to follow is that the test is testing a single cause/effect. that is, a single set of inputs, run the inputs, then assert as many things as you want to ensure the end state is what's expected. there is no problem working this way.
- deleted 4y ago[deleted]