Files
silo-server/internal/providerid/validate_test.go
383973ec22 feat(metadata): improve match accuracy and localized titles (#461)
* feat(metadata): improve match accuracy and localized titles

* fix(metadata): address matching review findings

* test(catalog): align empty alias snapshot scope

---------

Co-authored-by: Quick104 <31828688+Quick104@users.noreply.github.com>
2026-07-24 12:02:52 -04:00

26 lines
483 B
Go

package providerid
import "testing"
func TestIsPositiveDecimal(t *testing.T) {
t.Parallel()
tests := map[string]bool{
"": false,
"0": false,
"000": false,
"1": true,
"001": true,
"123456": true,
"-1": false,
"1.0": false,
"123": false,
"12a": false,
}
for value, want := range tests {
if got := IsPositiveDecimal(value); got != want {
t.Errorf("IsPositiveDecimal(%q) = %v, want %v", value, got, want)
}
}
}