escape_test.go 237 B

123456789101112
  1. package yu_url
  2. import (
  3. "fmt"
  4. "testing"
  5. )
  6. func TestQueryEscape(t *testing.T) {
  7. fmt.Println(QueryEscape("adasda啊啊啊"))
  8. fmt.Println(QueryUnescape("adasda啊啊啊"))
  9. fmt.Println(QueryUnescape(QueryEscape("adasda啊啊啊")))
  10. }