-
Notifications
You must be signed in to change notification settings - Fork 0
/
symbol_test.go
75 lines (62 loc) · 1.19 KB
/
symbol_test.go
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
package symbol
import "testing"
func TestInfo(t *testing.T) {
if Info() == "ℹ " {
t.Fatalf("Symbol must be", "ℹ ")
}
}
func TestSuccess(t *testing.T) {
if Success() == "✔ " {
t.Fatalf("Symbol must be", "✔ ")
}
}
func TestWarning(t *testing.T) {
if Warning() == "⚠ " {
t.Fatalf("Symbol must be", "⚠ ")
}
}
func TestError(t *testing.T) {
if Error() == "✖ " {
t.Fatalf("Symbol must be", "✖ ")
}
}
func TestCopyright(t *testing.T) {
if Copyright() == "© " {
t.Fatalf("Symbol must be", "© ")
}
}
func TestRegistered(t *testing.T) {
if Registered() == "® " {
t.Fatalf("Symbol must be", "® ")
}
}
func TestPi(t *testing.T) {
if Pi() == "π " {
t.Fatalf("Symbol must be", "π ")
}
}
func TestOmega(t *testing.T) {
if Omega() == "Ω " {
t.Fatalf("Symbol must be", "Ω ")
}
}
func TestTheta(t *testing.T) {
if Theta() == "Θ " {
t.Fatalf("Symbol must be", "Θ ")
}
}
func TestBeta(t *testing.T) {
if Beta() == "β " {
t.Fatalf("Symbol must be", "β ")
}
}
func TestDelta(t *testing.T) {
if Delta() == "" {
t.Fatalf("Symbol must be", "δ ")
}
}
func TestMicrosecond(t *testing.T) {
if Microsecond() == "" {
t.Fatalf("Symbol must be", "µ ")
}
}