From 184325e598436a0202f9540ad13536faf3d8ca35 Mon Sep 17 00:00:00 2001 From: fallcon Date: Thu, 10 Oct 2024 06:07:29 -0500 Subject: [PATCH] clarity --- code/modules/unit_tests/gun_sanity.dm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/code/modules/unit_tests/gun_sanity.dm b/code/modules/unit_tests/gun_sanity.dm index 9dd4bd42bac2..9a18f6ae8f47 100644 --- a/code/modules/unit_tests/gun_sanity.dm +++ b/code/modules/unit_tests/gun_sanity.dm @@ -1,16 +1,15 @@ /datum/unit_test/gun_sanity/Run() for(var/gun_path in subtypesof(/obj/item/gun/ballistic)) var/obj/item/gun/target_gun = new gun_path() - log_test("Testing [target_gun.type]") if(target_gun.default_ammo_type) if(!ispath(target_gun.default_ammo_type)) - TEST_FAIL("The default ammo in [target_gun.type] is not a type") + TEST_FAIL("The default ammo ([target_gun.default_ammo_type]) in [target_gun.type] is not a type") if(!(target_gun.default_ammo_type in target_gun.allowed_ammo_types)) - TEST_FAIL("The default ammo in [target_gun.type] in not in its allowed ammo types") + TEST_FAIL("The default ammo ([target_gun.default_ammo_type]) in [target_gun.type] in not in its allowed ammo types") if(!(target_gun.magazine?.type == target_gun.default_ammo_type)) - TEST_FAIL("[target_gun.type]'s mag does not equal its default_ammo_type") + TEST_FAIL("[target_gun.type]'s mag ([target_gun.magazine?.type]) does not equal its default_ammo_type") else if(target_gun.internal_magazine) TEST_FAIL("[target_gun.type] with an internal mag has no mag")