Skip to content

Commit

Permalink
unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
rye-rice committed Oct 31, 2023
1 parent d064ed0 commit 9d3a433
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/modules/unit_tests/projectiles.dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
gunner.put_in_hands(test_gun, forced=TRUE)
var/expected_damage = loaded_bullet.damage
loaded_bullet.def_zone = BODY_ZONE_CHEST
test_gun.safety = FALSE //So we can shoot the gun
var/did_we_shoot = test_gun.afterattack(victim, gunner)
TEST_ASSERT(did_we_shoot, "Gun does not appeared to have successfully fired.")
TEST_ASSERT_EQUAL(victim.getBruteLoss(), expected_damage, "Victim took incorrect amount of damage, expected [expected_damage], got [victim.getBruteLoss()].")
Expand Down

0 comments on commit 9d3a433

Please sign in to comment.