mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-09-27 21:56:19 -04:00
text dictionary: removed #2 string from test
This commit is contained in:
parent
4104d9d9ae
commit
3b41f9e89b
@ -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]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user