Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
biggc
on Oct 18, 2024
|
parent
|
context
|
favorite
| on:
Unit tests as documentation
Table tests can enable useful test naming without a bunch of clunky named test functions. I use them most often in Go but I’m sure other languages have support
https://go.dev/wiki/TableDrivenTests
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
https://go.dev/wiki/TableDrivenTests