mapserver/colormapping/colormapping_test.go
NatureFreshMilk a57724d5f0 color mapping
2019-01-11 11:23:50 +01:00

20 lines
285 B
Go

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