ss/urlenc/build_test.go

28 lines
380 B
Go
Raw Normal View History

2024-05-29 21:55:59 +03:00
package urlenc
import "testing"
import "log"
func TestArray(t *testing.T) {
log.Printf(
"Array{...}: %s\n",
Array[int]{
Name: "id",
Values: []int{123, 456, 789},
},
)
2024-05-29 21:55:59 +03:00
}
2024-05-29 22:59:36 +03:00
func TestJoin(t *testing.T) {
log.Printf(
"Join(...): %s",
2024-05-29 22:59:36 +03:00
Join(
Array[int]{
"id",
[]int{123, 456, 789},
},
Value[string]{"somename", "value with '='"},
).Encode(),
2024-05-29 22:59:36 +03:00
)
}