1
1
mirror of https://github.com/walles/moar.git synced 2024-09-11 12:15:43 +03:00
moar/moar_test.go

17 lines
288 B
Go
Raw Permalink Normal View History

2022-08-07 18:57:13 +03:00
package main
import (
"testing"
"github.com/walles/moar/twin"
2022-09-25 10:06:46 +03:00
"gotest.tools/v3/assert"
2022-08-07 18:57:13 +03:00
)
func TestParseScrollHint(t *testing.T) {
token := parseScrollHint("ESC[7m>", nil)
assert.Equal(t, token, twin.Cell{
Rune: '>',
Style: twin.StyleDefault.WithAttr(twin.AttrReverse),
})
}