mirror of
https://github.com/walles/moar.git
synced 2024-11-27 01:05:23 +03:00
18 lines
313 B
Go
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),
|
|
})
|
|
}
|