mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
Signed-off-by: Paul Larsen <[email protected]> Signed-off-by: Blake Pettersson <[email protected]> Signed-off-by: Alexandre Gaudreault <[email protected]> Co-authored-by: Blake Pettersson <[email protected]> Co-authored-by: Alexandre Gaudreault <[email protected]>
16 lines
292 B
Go
16 lines
292 B
Go
package versions
|
|
|
|
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"))
|
|
assert.True(t, IsVersion("1.0.0"))
|
|
}
|