mapserver/colormapping/colormapping_test.go
Thomas Rudin bc223722af gofmt
2019-01-13 16:37:03 +01:00

20 lines
271 B
Go

package colormapping
import (
"testing"
)
func TestNewMapping(t *testing.T) {
m := NewColorMapping()
err := m.LoadVFSColors(false, "/colors.txt")
if err != nil {
t.Fatal(err)
}
c := m.GetColor("scifi_nodes:blacktile2")
if c == nil {
panic("no color")
}
}