summaryrefslogtreecommitdiff
path: root/vt100_test.go
blob: 47dd92691d33aa58ee92cff585e5775dd191b44e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package vt100

import (
	"fmt"
	"testing"
)

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
}

func TestDisplay(_ *testing.T) {
	ExampleNormal()
	ExampleBold()
	ExampleUnderline()
	ExampleBlink()
	ExampleInverse()
	ExampleDoubleWidth()
	ExampleDoubleHeight()
}