Skip to content

Commit

Permalink
Change overline and unoverline to unsupported
Browse files Browse the repository at this point in the history
  • Loading branch information
noborus committed Nov 24, 2024
1 parent 0fffdb9 commit 8d0e381
Showing 1 changed file with 0 additions and 41 deletions.
41 changes: 0 additions & 41 deletions oviewer/content_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,47 +346,6 @@ func Test_StrToContentsStyle1(t *testing.T) {
}
}

func Test_StrToContentsStyle2(t *testing.T) {
type args struct {
str string
tabWidth int
}
tests := []struct {
name string
args args
want contents
}{
{
name: "OverLine",
args: args{
str: "\x1B[53mol\x1B[m", tabWidth: 8,
},
want: contents{
{width: 1, style: tcell.StyleDefault.Underline(true), mainc: rune('o'), combc: nil},
{width: 1, style: tcell.StyleDefault.Underline(true), mainc: rune('l'), combc: nil},
},
},
{
name: "UnOverLine",
args: args{
str: "\x1B[53mo\x1B[m\x1B[55mu\x1B[m\x1B[53ml\x1B[m", tabWidth: 8,
},
want: contents{
{width: 1, style: tcell.StyleDefault.Underline(true), mainc: rune('o'), combc: nil},
{width: 1, style: tcell.StyleDefault.Underline(false), mainc: rune('u'), combc: nil},
{width: 1, style: tcell.StyleDefault.Underline(true), mainc: rune('l'), combc: nil},
},
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := StrToContents(tt.args.str, tt.args.tabWidth); !reflect.DeepEqual(got, tt.want) {
t.Errorf("parseString() = %#v, want %#v", got, tt.want)
}
})
}
}

func Test_StrToContentUnStyle(t *testing.T) {
t.Parallel()
type args struct {
Expand Down

0 comments on commit 8d0e381

Please sign in to comment.