Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (14 sloc) 291 Bytes
package v8go_test
import (
"regexp"
"testing"
"rogchap.com/v8go"
)
func TestVersion(t *testing.T) {
t.Parallel()
rgx := regexp.MustCompile(`^\d+\.\d+\.\d+\.\d+-v8go$`)
v := v8go.Version()
if !rgx.MatchString(v) {
t.Errorf("version string is in the incorrect format: %s", v)
}
}
You can’t perform that action at this time.