summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vt100_test.go14
1 files changed, 13 insertions, 1 deletions
diff --git a/vt100_test.go b/vt100_test.go
index c2eb891..f30cb62 100644
--- a/vt100_test.go
+++ b/vt100_test.go
@@ -1,6 +1,9 @@
package vt100
-import "fmt"
+import (
+ "fmt"
+ "testing"
+)
func ExampleNormal() {
fmt.Println(Normal("This is a normal line"))
@@ -37,3 +40,12 @@ func ExampleDoubleHeight() {
// Output: #3This is double height
// #4This is double height
}
+
+func TestDisplay(_ *testing.T) {
+ ExampleNormal()
+ ExampleBold()
+ ExampleUnderline()
+ ExampleInverse()
+ ExampleDoubleWidth()
+ ExampleDoubleHeight()
+}