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 c6298d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion code/_compile_options.dm
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#define TRACK_MAX_SHARE //Allows max share tracking, for use in the atmos debugging ui
#endif //ifdef TESTING

//#define UNIT_TESTS //If this is uncommented, we do a single run though of the game setup and tear down process with unit tests in between
#define UNIT_TESTS //If this is uncommented, we do a single run though of the game setup and tear down process with unit tests in between

#ifndef PRELOAD_RSC //set to:
#define PRELOAD_RSC 2 // 0 to allow using external resources or on-demand behaviour;
Expand Down
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 c6298d5

Please sign in to comment.