mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-05 17:57:17 -05: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
|
||||
for _, key := range keys {
|
||||
value := (*td)[key]
|
||||
|
||||
for _, i := range key {
|
||||
sw.PushBytes(byte(i))
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ func exampleData() *TextDictionary {
|
||||
result := &TextDictionary{
|
||||
"abc": "def",
|
||||
"someStr": "Some long string",
|
||||
"teststring": "TeSt",
|
||||
"teststring": "TeStxwsas123 long strin122*8:wq",
|
||||
}
|
||||
|
||||
return result
|
||||
@ -27,7 +27,7 @@ func TestTBL_Marshal(t *testing.T) {
|
||||
newValue, ok := newTbl[key]
|
||||
|
||||
if !ok {
|
||||
t.Fatal("string wasn't encoded to table")
|
||||
t.Fatalf("string %s wasn't encoded to table", key)
|
||||
}
|
||||
|
||||
if newValue != value {
|
||||
|
Loading…
Reference in New Issue
Block a user