From 8d0e3815a74bbda01aea907dfa1df9ef2bbf6754 Mon Sep 17 00:00:00 2001 From: Noboru Saito Date: Mon, 25 Nov 2024 06:50:54 +0900 Subject: [PATCH] Change overline and unoverline to unsupported --- oviewer/content_test.go | 41 ----------------------------------------- 1 file changed, 41 deletions(-) diff --git a/oviewer/content_test.go b/oviewer/content_test.go index 689957b..78b4fee 100644 --- a/oviewer/content_test.go +++ b/oviewer/content_test.go @@ -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 {