1
0
forked from MTSR/mapserver
mapserver/server/travelnetparser/parser_test.go
2019-05-17 08:11:07 +02:00

27 lines
356 B
Go

package travelnetparser
import (
"encoding/json"
"fmt"
"testing"
)
func TestParse(t *testing.T) {
//TODO: test takes about 3 seconds for 350kb data :/
a, err := ParseFile("testdata/mod_travelnet.data")
if err != nil {
t.Fatal(err)
}
j, err := json.MarshalIndent(a, "", " ")
if err != nil {
t.Fatal(err)
}
fmt.Println(string(j[:]))
}