mirror of
https://github.com/taigrr/wtf
synced 2026-03-29 07:35:16 -07:00
15 lines
275 B
Go
15 lines
275 B
Go
package wtf_tests
|
|
|
|
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"))
|
|
}
|