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