Files
minstrel/internal/words/words_test.go
T
bvandeusenandClaude Opus 5.5 2ce4fd3edb
release / go (push) Successful in 1m52s
release / integration (push) Successful in 2m38s
release / web (push) Successful in 1m8s
release / govulncheck (push) Successful in 19s
release / android (push) Successful in 4m17s
release / Build signed APK (push) Successful in 4m43s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Build + push container image (push) Successful in 13s
release / Verify release artifacts (tag releases only) (push) Skipped
Revert the deliberate break (#8372)
This reverts commit 8af3c41b. Runs 11328 and 11329 showed what each lane
prints for a failing test, and that the step goes red with go test's own
status.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 22:11:43 -05:00

20 lines
449 B
Go

package words
import "testing"
func TestCount(t *testing.T) {
cases := []struct {
got, want string
}{
{Count(1, "track", "tracks"), "1 track"},
{Count(0, "track", "tracks"), "0 tracks"},
{Count(int64(3), "track went missing", "tracks went missing"), "3 tracks went missing"},
{Count(int32(-1), "copy", "copies"), "-1 copies"},
}
for _, c := range cases {
if c.got != c.want {
t.Errorf("got %q, want %q", c.got, c.want)
}
}
}