Permalink
Browse files

test: use the new tagging style for json keys

  • Loading branch information...
1 parent 695cfc3 commit ffb5e451cc859bb5ac880b5ceb55b1b383f620bb @madari committed Aug 17, 2011
Showing with 6 additions and 6 deletions.
  1. +3 −3 codec_sio_test.go
  2. +3 −3 codec_siostreaming_test.go
View
@@ -52,9 +52,9 @@ var encodeTests = []encodeTest{
},
{
struct {
- Boolean bool "bOoLeAn"
- Str string "sTr"
- Array []int "A"
+ Boolean bool `json:"bOoLeAn"`
+ Str string `json:"sTr"`
+ Array []int `json:"A"`
}{
false,
"string♥",
@@ -61,9 +61,9 @@ var streamingEncodeTests = []streamingEncodeTest{
},
{
struct {
- Boolean bool "bOoLeAn"
- Str string "sTr"
- Array []int "A"
+ Boolean bool `json:"bOoLeAn"`
+ Str string `json:"sTr"`
+ Array []int `json:"A"`
}{
false,
"string♥",

0 comments on commit ffb5e45

Please sign in to comment.