From 78a26ca72cc93f215e1c4c936435cb21470bb8b5 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 12 Apr 2015 16:35:14 +0200 Subject: Add example output --- vt100_test.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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() +} -- cgit v1.2.3