github.com/coyove/nj@v0.0.0-20221110084952-c7f8db1065c3/parser/parser_test.go (about)

     1  package parser
     2  
     3  import (
     4  	"fmt"
     5  	"os"
     6  	"testing"
     7  )
     8  
     9  func TestHashString(t *testing.T) {
    10  	c, _ := Parse(`b(1, 2+2,  a...) + "a"`, "")
    11  	c.Dump(os.Stdout)
    12  
    13  	fmt.Println(ParseJSON("{1:true, a=[1,2]}"))
    14  }