-
Notifications
You must be signed in to change notification settings - Fork 6
/
const_test.go
99 lines (86 loc) · 1.8 KB
/
const_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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
package bgfx
import "testing"
func TestConstRendererType(t *testing.T) {
for _, d := range rendererTypeTable {
if d.a != RendererType(d.b) {
t.Errorf("%d != %d", d.a, d.b)
}
}
}
func TestConstResetFlag(t *testing.T) {
for _, d := range resetFlagsTable {
if d.a != ResetFlags(d.b) {
t.Errorf("%d != %d", d.a, d.b)
}
}
}
func TestConstDebugOptions(t *testing.T) {
for _, d := range debugOptionsTable {
if d.a != DebugOptions(d.b) {
t.Errorf("%d != %d", d.a, d.b)
}
}
}
func TestConstClearOptions(t *testing.T) {
for _, d := range clearOptionsTable {
if d.a != ClearOptions(d.b) {
t.Errorf("%d != %d", d.a, d.b)
}
}
}
func TestConstCapFlags(t *testing.T) {
for _, d := range capFlagsTable {
if d.a != CapFlags(d.b) {
t.Errorf("%d != %d", d.a, d.b)
}
}
}
func TestConstUniformType(t *testing.T) {
for _, d := range uniformTypeTable {
if d.a != UniformType(d.b) {
t.Errorf("%d != %d", d.a, d.b)
}
}
}
func TestConstAttrib(t *testing.T) {
for _, d := range attribTable {
if d.a != Attrib(d.b) {
t.Errorf("%d != %d", d.a, d.b)
}
}
}
func TestConstAttribType(t *testing.T) {
for _, d := range attribTypeTable {
if d.a != AttribType(d.b) {
t.Errorf("%d != %d", d.a, d.b)
}
}
}
func TestConstTextureFormat(t *testing.T) {
for _, d := range texFormatTable {
if d.a != TextureFormat(d.b) {
t.Errorf("%d != %d", d.a, d.b)
}
}
}
func TestConstTextureFlags(t *testing.T) {
for _, d := range texFlagsTable {
if d.a != TextureFlags(d.b) {
t.Errorf("%d != %d", d.a, d.b)
}
}
}
func TestConstState(t *testing.T) {
for _, d := range stateTable {
if d.a != State(d.b) {
t.Errorf("%d != %d", d.a, d.b)
}
}
}
func TestConstBlend(t *testing.T) {
for _, d := range blendTable {
if d.a != BlendValue(d.b) {
t.Errorf("%d != %d", d.a, d.b)
}
}
}