Add test for calculating necessary for text with a given container width
ADD
ui/tviewutil/text_test.go
+package tviewutil
+
+import "testing"
+
+func TestCalculateNeccessaryHeight(t *testing.T) {
+ var neccessaryHeight int
+ neccessaryHeight = CalculateNeccessaryHeight(20, "abcdeabcdeabcde abcd \n")
+ if neccessaryHeight != 3 {
+ t.Errorf("Result was %d, but should've been 3", neccessaryHeight)
+ }
+}

Add test for calculating necessary for text with a given container width