mirror of
https://github.com/turbot/steampipe.git
synced 2025-12-19 18:12:43 -05:00
19 lines
276 B
Go
19 lines
276 B
Go
package modinstaller
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
|
|
"github.com/Masterminds/semver/v3"
|
|
)
|
|
|
|
func TestModInstaller(t *testing.T) {
|
|
cs, err := semver.NewConstraint("^3")
|
|
v, _ := semver.NewVersion("3.1")
|
|
res := cs.Check(v)
|
|
fmt.Println(res)
|
|
|
|
fmt.Println(cs)
|
|
fmt.Println(err)
|
|
}
|