summaryrefslogtreecommitdiff
path: root/vt100_test.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-04-10 16:37:39 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-04-10 16:37:39 +0200
commitae2d2dbbe33a98cf41350ef37947c21461479d68 (patch)
tree2dde07d38270a13baf1dcd85af4004bc663e104e /vt100_test.go
Initial import
Diffstat (limited to 'vt100_test.go')
-rw-r--r--vt100_test.go39
1 files changed, 39 insertions, 0 deletions
diff --git a/vt100_test.go b/vt100_test.go
new file mode 100644
index 0000000..c2eb891
--- /dev/null
+++ b/vt100_test.go
@@ -0,0 +1,39 @@
+package vt100
+
+import "fmt"
+
+func ExampleNormal() {
+ fmt.Println(Normal("This is a normal line"))
+ // Output: This is a normal line
+}
+
+func ExampleBold() {
+ fmt.Println(Bold("This is a bold line"))
+ // Output: This is a bold line
+}
+
+func ExampleUnderline() {
+ fmt.Println(Underline("This line is underlined"))
+ // Output: This line is underlined
+}
+
+func ExampleBlink() {
+ fmt.Println(Blink("This is a blinking line"))
+ // Output: This is a blinking line
+}
+
+func ExampleInverse() {
+ fmt.Println(Inverse("This is inverse video"))
+ // Output: This is inverse video
+}
+
+func ExampleDoubleWidth() {
+ fmt.Println(DoubleWidth("This is double width"))
+ // Output: #6This is double width
+}
+
+func ExampleDoubleHeight() {
+ fmt.Println(DoubleHeight("This is double height"))
+ // Output: #3This is double height
+ // #4This is double height
+}