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
1 changed files with 6 additions and 5 deletions

View File

@ -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]