mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
15 lines
317 B
Go
15 lines
317 B
Go
package wtf_tests
|
||
|
||
import (
|
||
"testing"
|
||
|
||
. "github.com/stretchr/testify/assert"
|
||
. "github.com/wtfutil/wtf/wtf"
|
||
)
|
||
|
||
func Test_ASCIItoTviewColors(t *testing.T) {
|
||
Equal(t, "", ASCIItoTviewColors(""))
|
||
Equal(t, "cat", ASCIItoTviewColors("cat"))
|
||
Equal(t, "[38;5;226mcat/[-]", ASCIItoTviewColors("[38;5;226mcat/[0m"))
|
||
}
|