refactor enemy to remove redundancy
This commit is contained in:
+2
-1
@@ -124,8 +124,9 @@ test_update_wave_spawns_and_resets_timer :: proc(t: ^testing.T) {
|
||||
@(test)
|
||||
test_update_phase_from_build_phase :: proc(t: ^testing.T) {
|
||||
world := World{}
|
||||
world.phase = .Build
|
||||
defer delete(world.events)
|
||||
|
||||
world.phase = .Build
|
||||
update_phase(&world)
|
||||
|
||||
testing.expect(t, world.phase == .Build)
|
||||
|
||||
Reference in New Issue
Block a user