all repos

mugit @ f59c3291597dd28b59cf0493c844a093ba03c99d

馃惍 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
Authored at: 2026-02-05 21:56:49 +0200
Change ID: rrluzwwzpyurmumqunwrlououuqytxwl
Parent: ffeccd3
M internal/humanize/time_test.go
路路路
        3
        3
         import (

      
        4
        4
         	"testing"

      
        5
        5
         	"time"

      
        
        6
        +

      
        
        7
        +	"olexsmir.xyz/x/is"

      
        6
        8
         )

      
        7
        9
         

      
        8
        10
         func TestFormatDuration(t *testing.T) {

      路路路
        35
        37
         	}

      
        36
        38
         

      
        37
        39
         	for _, tt := range tests {

      
        38
        
        -		got := formatDuration(tt.d)

      
        39
        
        -		if got != tt.want {

      
        40
        
        -			t.Errorf("formatDuration(%v) = %q, want %q", tt.d, got, tt.want)

      
        41
        
        -		}

      
        
        40
        +		is.Equal(t, tt.want, formatDuration(tt.d))

      
        42
        41
         	}

      
        43
        42
         }