5 ms·
Without it, it would pass the current location, that is the location inside that test function, rather than the original parent call.
by skribanto 3y ago
Without it, it would pass the current location, that is the location inside that test function, rather than the original parent call.
- TheAceOfHearts 3y agoSure, I'm saying the language could aspire to implement full stack traces automatically for tests, rather than requiring passing it for all assertions. Having to keep writing the same thing over and over is just boilerplate and a distraction. There's no reason the language itself couldn't implement some built-in support for such functionality along with the testing module, given that they control the full ecosystem.