mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-09-27 21:56:19 -04:00
hotfix: lintfix
This commit is contained in:
parent
de1c0ebe5d
commit
287fb2bf4d
@ -235,6 +235,7 @@ func (td *TextDictionary) Marshal() []byte {
|
|||||||
// data stream: put all data in appropriate order
|
// data stream: put all data in appropriate order
|
||||||
for _, key := range keys {
|
for _, key := range keys {
|
||||||
value := (*td)[key]
|
value := (*td)[key]
|
||||||
|
|
||||||
for _, i := range key {
|
for _, i := range key {
|
||||||
sw.PushBytes(byte(i))
|
sw.PushBytes(byte(i))
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ func exampleData() *TextDictionary {
|
|||||||
result := &TextDictionary{
|
result := &TextDictionary{
|
||||||
"abc": "def",
|
"abc": "def",
|
||||||
"someStr": "Some long string",
|
"someStr": "Some long string",
|
||||||
"teststring": "TeSt",
|
"teststring": "TeStxwsas123 long strin122*8:wq",
|
||||||
}
|
}
|
||||||
|
|
||||||
return result
|
return result
|
||||||
@ -27,7 +27,7 @@ func TestTBL_Marshal(t *testing.T) {
|
|||||||
newValue, ok := newTbl[key]
|
newValue, ok := newTbl[key]
|
||||||
|
|
||||||
if !ok {
|
if !ok {
|
||||||
t.Fatal("string wasn't encoded to table")
|
t.Fatalf("string %s wasn't encoded to table", key)
|
||||||
}
|
}
|
||||||
|
|
||||||
if newValue != value {
|
if newValue != value {
|
||||||
|
Loading…
Reference in New Issue
Block a user