mapserver/travelnetparser/parser_test.go

27 lines
356 B
Go
Raw Permalink Normal View History

2019-05-17 09:11:07 +03:00
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[:]))
}