mapserver/areasparser/parser_test.go
2019-06-13 08:04:32 +02:00

26 lines
289 B
Go

package areasparser
import (
"encoding/json"
"fmt"
"testing"
)
func TestParse(t *testing.T) {
a, err := ParseFile("testdata/areas.dat")
if err != nil {
t.Fatal(err)
}
j, err := json.MarshalIndent(a, "", " ")
if err != nil {
t.Fatal(err)
}
fmt.Println(string(j[:]))
}