Hacker News new | ask | show | jobs
by skribanto 1059 days ago
Without it, it would pass the current location, that is the location inside that test function, rather than the original parent call.
1 comments

Sure, 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.