Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Tests are never called explicitly by programmers, or at least they never should be. You could argue that they don’t really need to be functions at all, just pieces of code that represent tests.


That's how Zig tests work. This is basically a function with a different syntax.

test "strip html tags from string" {

  ...

}




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: