Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
seanmcdirmid
on May 9, 2025
|
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
on May 9, 2025
[–]
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: