Skip to content

Commit

Permalink
clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
FalloutFalcon committed Oct 10, 2024
1 parent 65cbbb0 commit 184325e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions code/modules/unit_tests/gun_sanity.dm
Original file line number Diff line number Diff line change
@@ -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")

Check failure on line 15 in code/modules/unit_tests/gun_sanity.dm

View workflow job for this annotation

GitHub Actions / Integration Tests (BASIC_TESTS) / run_integration_tests

/datum/unit_test/gun_sanity: /datum/unit_test/gun_sanity

/obj/item/gun/ballistic/revolver/detective/no_mag with an internal mag has no mag

Check failure on line 15 in code/modules/unit_tests/gun_sanity.dm

View workflow job for this annotation

GitHub Actions / Integration Tests (BASIC_TESTS) / run_integration_tests

/datum/unit_test/gun_sanity: /datum/unit_test/gun_sanity

/obj/item/gun/ballistic/derringer/no_mag with an internal mag has no mag

Check failure on line 15 in code/modules/unit_tests/gun_sanity.dm

View workflow job for this annotation

GitHub Actions / Integration Tests (BASIC_TESTS) / run_integration_tests

/datum/unit_test/gun_sanity: /datum/unit_test/gun_sanity

/obj/item/gun/ballistic/rifle/scout/no_mag with an internal mag has no mag

Check failure on line 15 in code/modules/unit_tests/gun_sanity.dm

View workflow job for this annotation

GitHub Actions / Integration Tests (BASIC_TESTS) / run_integration_tests

/datum/unit_test/gun_sanity: /datum/unit_test/gun_sanity

/obj/item/gun/ballistic/shotgun/brimstone/no_mag with an internal mag has no mag

Check failure on line 15 in code/modules/unit_tests/gun_sanity.dm

View workflow job for this annotation

GitHub Actions / Integration Tests (BASIC_TESTS) / run_integration_tests

/datum/unit_test/gun_sanity: /datum/unit_test/gun_sanity

/obj/item/gun/ballistic/shotgun/hellfire/no_mag with an internal mag has no mag

Check failure on line 15 in code/modules/unit_tests/gun_sanity.dm

View workflow job for this annotation

GitHub Actions / Integration Tests (BASIC_TESTS) / run_integration_tests

/datum/unit_test/gun_sanity: /datum/unit_test/gun_sanity

/obj/item/gun/ballistic/shotgun/doublebarrel/no_mag with an internal mag has no mag

Check failure on line 15 in code/modules/unit_tests/gun_sanity.dm

View workflow job for this annotation

GitHub Actions / Integration Tests (BASIC_TESTS) / run_integration_tests

/datum/unit_test/gun_sanity: /datum/unit_test/gun_sanity

/obj/item/gun/ballistic/shotgun/doublebarrel/beacon/no_mag with an internal mag has no mag

Check failure on line 15 in code/modules/unit_tests/gun_sanity.dm

View workflow job for this annotation

GitHub Actions / Integration Tests (BASIC_TESTS) / run_integration_tests

/datum/unit_test/gun_sanity: /datum/unit_test/gun_sanity

/obj/item/gun/ballistic/shotgun/flamingarrow/no_mag with an internal mag has no mag

Check failure on line 15 in code/modules/unit_tests/gun_sanity.dm

View workflow job for this annotation

GitHub Actions / Integration Tests (BASIC_TESTS) / run_integration_tests

/datum/unit_test/gun_sanity: /datum/unit_test/gun_sanity

/obj/item/gun/ballistic/shotgun/flamingarrow/absolution/no_mag with an internal mag has no mag

Check failure on line 15 in code/modules/unit_tests/gun_sanity.dm

View workflow job for this annotation

GitHub Actions / Integration Tests (BASIC_TESTS) / run_integration_tests

/datum/unit_test/gun_sanity: /datum/unit_test/gun_sanity

/obj/item/gun/ballistic/shotgun/flamingarrow/conflagration/no_mag with an internal mag has no mag
Expand Down

0 comments on commit 184325e

Please sign in to comment.