mirror of
https://github.com/argoproj/argo-cd
synced 2026-05-04 15:18:20 +00:00
14 lines
254 B
Go
14 lines
254 B
Go
package helm
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestIsVersion(t *testing.T) {
|
|
assert.False(t, IsVersion("*"))
|
|
assert.False(t, IsVersion("1.*"))
|
|
assert.False(t, IsVersion("1.0.*"))
|
|
assert.True(t, IsVersion("1.0.0"))
|
|
}
|