1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-20 06:05:23 +00:00

text dictionary: removed #2 string from test

This commit is contained in:
M. Sz 2021-02-28 20:31:44 +01:00
parent 4104d9d9ae
commit 3b41f9e89b

View File

@ -1,16 +1,15 @@
package d2tbl package d2tbl
import ( import (
"fmt"
"testing" "testing"
) )
func exampleData() *TextDictionary { func exampleData() *TextDictionary {
result := &TextDictionary{ result := &TextDictionary{
"abc": "def", "abc": "def",
"someStr": "Some long string", "someStr": "Some long string",
// #2 is non-named (X: OK)
// so 2 is an index in map
"#2": "OK",
"teststring": "TeStxwsas123 long strin122*8:wq", "teststring": "TeStxwsas123 long strin122*8:wq",
} }
@ -26,6 +25,8 @@ func TestTBL_Marshal(t *testing.T) {
t.Error(err) t.Error(err)
} }
fmt.Println(newTbl)
for key, value := range *tbl { for key, value := range *tbl {
newValue, ok := newTbl[key] newValue, ok := newTbl[key]