From 3b41f9e89bee425b191def30602ce5c259a553e5 Mon Sep 17 00:00:00 2001 From: "M. Sz" Date: Sun, 28 Feb 2021 20:31:44 +0100 Subject: [PATCH] text dictionary: removed #2 string from test --- d2common/d2fileformats/d2tbl/text_dictionary_test.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/d2common/d2fileformats/d2tbl/text_dictionary_test.go b/d2common/d2fileformats/d2tbl/text_dictionary_test.go index f92824c9..142ff14c 100644 --- a/d2common/d2fileformats/d2tbl/text_dictionary_test.go +++ b/d2common/d2fileformats/d2tbl/text_dictionary_test.go @@ -1,16 +1,15 @@ package d2tbl import ( + "fmt" + "testing" ) func exampleData() *TextDictionary { result := &TextDictionary{ - "abc": "def", - "someStr": "Some long string", - // #2 is non-named (X: OK) - // so 2 is an index in map - "#2": "OK", + "abc": "def", + "someStr": "Some long string", "teststring": "TeStxwsas123 long strin122*8:wq", } @@ -26,6 +25,8 @@ func TestTBL_Marshal(t *testing.T) { t.Error(err) } + fmt.Println(newTbl) + for key, value := range *tbl { newValue, ok := newTbl[key]