We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b9abab commit f3a1c63Copy full SHA for f3a1c63
pkg/demoinfocs/sendtables/entity_test.go
@@ -15,6 +15,7 @@ var testData = struct {
15
{value: PropertyValue{IntVal: 20}},
16
{value: PropertyValue{IntVal: 30}},
17
},
18
+ serialNum: 1337,
19
serverClass: &ServerClass{propNameToIndex: map[string]int{
20
"myProp": 0,
21
"test": 1,
@@ -33,6 +34,10 @@ func TestEntity_ServerClass(t *testing.T) {
33
34
assert.Equal(t, testData.entity.serverClass, testData.entity.ServerClass())
35
}
36
37
+func TestEntity_SerialNum(t *testing.T) {
38
+ assert.Equal(t, testData.entity.serialNum, testData.entity.SerialNum())
39
+}
40
+
41
func TestEntity_Property(t *testing.T) {
42
assert.Equal(t, &testData.entity.props[1], testData.entity.Property("test"))
43
0 commit comments