Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
seanmcdirmid
10 months ago
|
parent
|
context
|
favorite
| on:
What’s new in Swift 6.2
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.
SwiftyBug
10 months ago
[–]
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: