mirror of
https://github.com/walles/moar.git
synced 2024-10-26 21:13:11 +03:00
17 lines
288 B
Go
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),
|
|
})
|
|
}
|