diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-08 22:30:11 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-08 22:30:11 +0300 |
| commit | e2a5b16130fe6294d638ea7efe889aeb02687a10 (patch) | |
| tree | f73cf0368765271fc1066421cd6146e40b00a0e2 | |
| parent | 0e50deac87fc528636743dc5d02ca00b66679116 (diff) | |
task i: remove reflect from helper test
| -rw-r--r-- | internal/ui/helpers_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/ui/helpers_test.go b/internal/ui/helpers_test.go index 1fe853b..41efe66 100644 --- a/internal/ui/helpers_test.go +++ b/internal/ui/helpers_test.go @@ -2,8 +2,8 @@ package ui import ( "fmt" - "reflect" "regexp" + "slices" "strings" "sync" "testing" @@ -535,7 +535,7 @@ func TestParseFilterInput(t *testing.T) { t.Errorf("parseFilterInput(%q) error = %v, wantErr %v", tt.input, err, tt.wantErr) return } - if !tt.wantErr && !reflect.DeepEqual(got, tt.want) { + if !tt.wantErr && !slices.Equal(got, tt.want) { t.Errorf("parseFilterInput(%q) = %v, want %v", tt.input, got, tt.want) } }) |
