3 ms·
I would make this a parameterized test for those common use cases and specific test for others ("o'tool" => "O'Tool"). The overhead of setup/teardown should be
by flukus 10y ago
I would make this a parameterized test for those common use cases and specific test for others ("o'tool" => "O'Tool").
The overhead of setup/teardown should be practically zero. Even having them as 3 separate functions should be take fractions of a millisecond.
The important thing is, it should be obvious why a test failed, you don't want more then 1 or two asserts.