mirror of
https://github.com/alecthomas/chroma.git
synced 2025-02-13 13:28:27 +02:00
14 lines
296 B
Go
14 lines
296 B
Go
package formatters
|
|
|
|
import (
|
|
"testing"
|
|
|
|
assert "github.com/alecthomas/assert/v2"
|
|
"github.com/alecthomas/chroma/v2"
|
|
)
|
|
|
|
func TestClosestColour(t *testing.T) {
|
|
actual := findClosest(ttyTables[256], chroma.MustParseColour("#e06c75"))
|
|
assert.Equal(t, chroma.MustParseColour("#d75f87"), actual)
|
|
}
|