wecisecode 1 week ago
parent
commit
137e833097
2 changed files with 39 additions and 0 deletions
  1. 23 0
      float/float_test.go
  2. 16 0
      test.env

+ 23 - 0
float/float_test.go

@@ -0,0 +1,23 @@
+package float_test
+
+import (
+	"regexp"
+	"testing"
+
+	"github.com/stretchr/testify/assert"
+)
+
+func TestXXX(t *testing.T) {
+	var floatzero = regexp.MustCompile(`[\+\-]?0+(?:\.\0*)?(?:f|[Ee][\+\-]?\d+)?`)
+	if !assert.True(t,
+		floatzero.MatchString("0.0e1") &&
+			floatzero.MatchString("0.0") &&
+			floatzero.MatchString("0.0f") &&
+			floatzero.MatchString("00.00e00") &&
+			!floatzero.MatchString("") &&
+			!floatzero.MatchString("x") &&
+			floatzero.MatchString("0"),
+	) {
+		return
+	}
+}

+ 16 - 0
test.env

@@ -0,0 +1,16 @@
+
+MATRIXROOT=e:\opt\matrix
+ETCDPATH=47.92.151.165:2379
+
+NATSPATH=nats://user:N5JbKeT1C3uOUh317OVXjg==@47.92.151.165:4222
+
+# wecise 47
+#CASSANDRAPATH=47.92.151.165
+# uino test
+CASSANDRAPATH=10.100.30.128
+# 默认为false,跨域连接时需要置true,实际含义是 DisableLookup
+CASSANDRALOOKUP=true
+
+KEYSPACE=oktest
+test.mql.path=0\0.mql
+# test.mql.path=basic\10basic\15.valid.mql