1
1
mirror of https://github.com/walles/moar.git synced 2024-11-22 21:50:43 +03:00
moar/moar_test.go
2023-03-02 07:06:10 +01:00

18 lines
313 B
Go

package main
import (
"testing"
"github.com/walles/moar/twin"
"gotest.tools/v3/assert"
)
func TestParseScrollHint(t *testing.T) {
token, err := parseScrollHint("ESC[7m>")
assert.NilError(t, err)
assert.Equal(t, token, twin.Cell{
Rune: '>',
Style: twin.StyleDefault.WithAttr(twin.AttrReverse),
})
}