package value

import (
	"log"
	"testing"
)

func TestValue(t *testing.T) {
	val := ValueOf(`{ "one": "111" }`)
	s := map[string]string{}
	t.Log(val.Setup(&s), s)

	val = ValueOf(100.55)
	log.Println(val.Int())

	val = ValueOf([]string{"one", "two", "three"})
	var sls []string
	t.Log(val.Setup(&sls), sls)

	var ils []int
	val = ValueOf("10, 11, 12")
	t.Log(val.Setup(&ils), ils)
}