z_test.go 290 B

12345678910111213141516171819
  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. val = ValueOf("one, two, three")
  13. var sls []string
  14. t.Log(val.Setup(&sls))
  15. }