1
0
forked from MTSR/mapserver
mapserver/server/areasparser/parser_test.go
NatureFreshMilk dc7c1e58d1 go fmt
2019-02-22 13:57:33 +01: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[:]))
}