summaryrefslogtreecommitdiff
path: root/vt100_test.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-04-12 16:35:14 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-04-12 16:35:14 +0200
commit78a26ca72cc93f215e1c4c936435cb21470bb8b5 (patch)
tree5ba037ead8175594a279a66b9fad6a75a36aa961 /vt100_test.go
parentae2d2dbbe33a98cf41350ef37947c21461479d68 (diff)
Add example output
Diffstat (limited to 'vt100_test.go')
-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()
+}