mirror of
https://github.com/gizak/termui.git
synced 2025-04-27 13:48:51 +08:00
more cleanup of printing
This commit is contained in:
parent
eaf7f8d6e6
commit
f893b6f7fa
@ -1,7 +1,6 @@
|
||||
package termui
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
@ -20,9 +19,6 @@ func TestBreakByStyles(t *testing.T) {
|
||||
func TestParseStyles(t *testing.T) {
|
||||
cells := ParseStyles("test nothing", NewStyle(ColorWhite))
|
||||
cells = ParseStyles("test [blue](fg:blue,bg:white,mod:bold) and [red](fg:red)", NewStyle(ColorWhite))
|
||||
fmt.Println(cells)
|
||||
text2 := textFromCells(cells)
|
||||
fmt.Println(text2)
|
||||
if len(cells) != 17 {
|
||||
t.Fatal("wrong length", len(cells))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user