mapserver/colormapping/colormapping_test.go

20 lines
285 B
Go
Raw Normal View History

2019-01-11 12:49:19 +03:00
package colormapping
import (
"testing"
)
func TestNewMapping(t *testing.T) {
2019-01-11 13:23:50 +03:00
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")
}
2019-01-11 12:49:19 +03:00
}