Skip to content

Commit eb4fe24

Browse files
committed
utf8文字列長の変更にあわせてテスト修正
1 parent 088dbb3 commit eb4fe24

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

common_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,19 +102,19 @@ var readUTF8Tests = []struct {
102102
output string
103103
}{
104104
{
105-
[]uint8{0x00, 0x61},
105+
[]uint8{0x00, 0x00, 0x61},
106106
"",
107107
},
108108
{
109-
[]uint8{0x01, 0x61},
109+
[]uint8{0x01, 0x01, 0x61},
110110
"a",
111111
},
112112
{
113-
[]uint8{0x03, 0xE3, 0x81, 0x82},
113+
[]uint8{0x01, 0x03, 0xE3, 0x81, 0x82},
114114
"\u3042",
115115
},
116116
{
117-
[]uint8{0x80, 0x01, 0x61},
117+
[]uint8{0x80, 0x01, 0x80, 0x01, 0x61},
118118
"a",
119119
},
120120
}

0 commit comments

Comments
 (0)