aboutsummaryrefslogtreecommitdiff
path: root/query/query_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'query/query_test.go')
-rw-r--r--query/query_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/query/query_test.go b/query/query_test.go
index 5aaf61a..3a12630 100644
--- a/query/query_test.go
+++ b/query/query_test.go
@@ -9,17 +9,19 @@ func TestMarshal(t *testing.T) {
C string `query:",optional"`
D [3]byte
E []byte
+ F uint16
}{
A: "test",
B: 100,
D: [3]byte{1, 2, 3},
E: []byte{'A', 'B'},
+ F: 65535,
}
v, err := Marshal(q)
if err != nil {
t.Error(err)
}
- if v != "?b=100&d=%01%02%03&e=AB&x=test" {
+ if v != "?b=100&d=%01%02%03&e=AB&f=65535&x=test" {
t.Error("wrong result", v)
}