all repos

mugit @ f59c329

🐮 git server that your cow will love
2 files changed, 3 insertions(+), 4 deletions(-)
fix naming inconsistencies; use is for testsing
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2026-02-05 22:16:36 +0200
Change ID: rrluzwwzpyurmumqunwrlououuqytxwl
Parent: ffeccd3
M internal/humanize/time_test.go

@@ -3,6 +3,8 @@

import ( "testing" "time" + + "olexsmir.xyz/x/is" ) func TestFormatDuration(t *testing.T) {

@@ -35,9 +37,6 @@ {1000 * 24 * time.Hour, "2 years"},

} for _, tt := range tests { - got := formatDuration(tt.d) - if got != tt.want { - t.Errorf("formatDuration(%v) = %q, want %q", tt.d, got, tt.want) - } + is.Equal(t, tt.want, formatDuration(tt.d)) } }