mirror of
https://github.com/walles/moar.git
synced 2024-08-16 23:40:35 +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),
|
|
})
|
|
}
|