Skip to content

Commit 3958a5b

Browse files
committed
chore: add case insensitive test
Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>
1 parent e6be598 commit 3958a5b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

catalog/internal/catalog/model_filter_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ func TestModelFilterAllows(t *testing.T) {
1616
assert.False(t, filter.Allows("Granite/beta-release"))
1717
assert.False(t, filter.Allows("Other/model"))
1818

19+
// Test case-insensitive matching
20+
assert.True(t, filter.Allows("granite/3-1-instruct"))
21+
assert.True(t, filter.Allows("GRANITE/3-1-instruct"))
22+
assert.False(t, filter.Allows("granite/beta-release"))
23+
1924
allowAll, err := NewModelFilter([]string{"*"}, nil)
2025
require.NoError(t, err)
2126
assert.True(t, allowAll.Allows("anything/goes"))

0 commit comments

Comments
 (0)