mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08: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"))
|
|
}
|