mirror of
https://github.com/alecthomas/chroma.git
synced 2025-07-01 00:35:06 +02:00
HTML formatter + import all Pygments styles.
This commit is contained in:
14
formatters/html/html_test.go
Normal file
14
formatters/html/html_test.go
Normal file
@ -0,0 +1,14 @@
|
||||
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)
|
||||
}
|
Reference in New Issue
Block a user