Skip to content

Commit

Permalink
fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Doster-d committed Sep 13, 2023
1 parent 7f461db commit 72da858
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/modules/unit_tests/loadout_tests.dm
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@


/datum/unit_test/loadout_has_cost_and_name/Run()
// vault_items' are blank gear and fill up in runtime
for(var/geartype in subtypesof(/datum/gear) - subtypesof(/datum/gear/vault_item))
for(var/geartype in subtypesof(/datum/gear))
var/datum/gear/G = geartype
Check(G)

// because test assert returns, and we dont want that.
/datum/unit_test/loadout_has_cost_and_name/proc/Check(datum/gear/G)
if(G == /datum/gear/gloves)
// vault_items' are blank gear and fill up in runtime
if(G == /datum/gear/gloves || istype(G, /datum/gear/vault_item))
return
TEST_ASSERT(initial(G.display_name), "Loadout ([G]) has no display name.")
TEST_ASSERT(initial(G.cost), "Loadout ([G]) has no cost.")
Expand Down

0 comments on commit 72da858

Please sign in to comment.