1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00
wtf/wtftests/colors_test.go
2018-06-29 04:52:14 -07:00

15 lines
274 B
Go

package wtftests
import (
"testing"
"github.com/gdamore/tcell"
. "github.com/senorprogrammer/wtf/wtf"
. "github.com/stretchr/testify/assert"
)
func TestColorFor(t *testing.T) {
Equal(t, tcell.ColorRed, ColorFor("red"))
Equal(t, tcell.ColorGreen, ColorFor("cat"))
}