mirror of
https://github.com/alecthomas/chroma.git
synced 2025-03-19 21:10:15 +02:00
15 lines
288 B
Go
15 lines
288 B
Go
package html
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestCompressStyle(t *testing.T) {
|
|
style := "color: #888888; background-color: #ffffff"
|
|
actual := compressStyle(style)
|
|
expected := "color:#888;background-color:#fff"
|
|
require.Equal(t, expected, actual)
|
|
}
|