The idiomatic Go testing style
Table-driven tests loop over cases in _test.go files with testing.T. Benchmarks use testing.B. Run with go test ./....
We simulate the pattern in main here — in real projects, tests live beside your code in *_test.go.
Output
Press Run to execute your code.