* 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>
26 lines
483 B
Go
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)
|
|
}
|
|
}
|
|
}
|