Skip to content

Commit

Permalink
another thingy
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkSuckerberg committed Feb 2, 2024
1 parent 02d3141 commit c7c62cb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions code/modules/unit_tests/_unit_tests.dm
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
#include "keybinding_init.dm"
#include "machine_disassembly.dm"
#include "open_air.dm"
#include "outfit_names.dm"
#include "outfit_sanity.dm"
#include "overmap.dm"
#include "pills.dm"
Expand Down
12 changes: 12 additions & 0 deletions code/modules/unit_tests/outfit_names.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/datum/unit_test/outfit_names/Run()
var/list/outfit_names = list()

for(var/outfit_type in subtypesof(/datum/outfit))
var/name = initial(outfit_type.name)

if(name in outfit_names)
TEST_FAIL("Outfit name [name] is not unique: [outfit_type], [outfit_names[name]]")

outfit_names[name] = outfit_type


0 comments on commit c7c62cb

Please sign in to comment.