if the expected elements got names stating the purpose of that match, we could reproduce that in a test failure instead of some potentially abstruse regex, hinting at the purpose of the test directly. Currently we have to piece that back together from the comments nearby (not to mention comments are notoriously susceptible to staling).
if the expected elements got names stating the purpose of that match, we could reproduce that in a test failure instead of some potentially abstruse regex, hinting at the purpose of the test directly. Currently we have to piece that back together from the comments nearby (not to mention comments are notoriously susceptible to staling).