You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert.Equal(t, groundPos, bomb.Position(), "Bomb position should be LastOnGroundPosition")
18
+
19
+
playerPos:= r3.Vector{X: 4, Y: 5, Z: 6}
20
+
bomb.Carrier=&Player{Position: playerPos}
21
+
assert.Equal(t, playerPos, bomb.Position(), "Bomb position should be Player.Position")
22
+
}
23
+
24
+
funcTestGrenadeProjectileUniqueID(t*testing.T) {
25
+
assert.NotEqual(t, NewGrenadeProjectile().UniqueID(), NewGrenadeProjectile().UniqueID(), "UniqueIDs of different grenade projectiles should be different")
26
+
}
27
+
28
+
funcTestDemoHeader(t*testing.T) {
29
+
header:=DemoHeader{
30
+
PlaybackFrames: 256,
31
+
PlaybackTicks: 512,
32
+
PlaybackTime: time.Duration(4*time.Second),
33
+
}
34
+
35
+
assert.Equal(t, float64(64), header.FrameRate(), "FrameRate should be 64")
36
+
assert.Equal(t, time.Duration(time.Second/64), header.FrameTime(), "FrameTime should be 1/64 sec")
37
+
38
+
assert.Equal(t, float64(128.0), header.TickRate(), "TickRate should be 128")
39
+
assert.Equal(t, time.Duration(time.Second/128), header.TickTime(), "TickTime should be 1/128")
0 commit comments