Write a table-driven test
Foundation · tests · 20 min · runtime go
Brief
Write a table-driven test for a Slug function with name, input, expected and a clear failure message, using subtests.
3 progressive hints are available in the editor.
Public checks
- uses subtests — expected:
t.Run with named cases