z_test.go 213 B

123456789101112131415
  1. package value
  2. import (
  3. "log"
  4. "testing"
  5. )
  6. func TestValue(t *testing.T) {
  7. val := ValueOf(`{ "one": "111" }`)
  8. s := map[string]string{}
  9. t.Log(val.Setup(&s), s)
  10. val = ValueOf(100.55)
  11. log.Println(val.Int())
  12. }