1
1
mirror of https://github.com/walles/moar.git synced 2024-08-16 23:40:35 +03:00
moar/moar_test.go
2022-09-25 09:06:46 +02:00

17 lines
288 B
Go

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