mapserver/colormapping/colormapping_test.go
NatureFreshMilk f6547e1d69 renderer
2019-01-11 11:44:17 +01:00

20 lines
282 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")
}
}