Hacker News new | ask | show | jobs
by ant6n 1590 days ago
Interesting. But how would one test "know" about the next one, especially if they are in different compilation units.
1 comments

Discovery is at runtime. Syntax goes something like MODULE(foo) { DEPENDS(bar); TEST("I like string names") { CHECK(42 == life()); } } where DEPENDS either sends control flow off to bar or onwards towards the test case depending on the value of an argument to the function MODULE created.