23 lines
323 B
Go
23 lines
323 B
Go
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},
|
|
})
|
|
}
|
|
|
|
func TestJoin(t *testing.T) {
|
|
log.Printf(
|
|
Join(
|
|
Array[int]{
|
|
"id",
|
|
[]int{123, 456, 789},
|
|
},
|
|
Pair[int]{"somename", 25},
|
|
),
|
|
)
|
|
}
|