1 package formatters 2 3 import ( 4 "testing" 5 6 "github.com/alecthomas/chroma" 7 "github.com/stretchr/testify/assert" 8 ) 9 10 func TestClosestColour(t *testing.T) { 11 actual := findClosest(ttyTables[256], chroma.MustParseColour("#e06c75")) 12 assert.Equal(t, chroma.MustParseColour("#d75f87"), actual) 13 } 14