mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 09:42:29 +00:00
## About The Pull Request Fixes several errors to spelling, grammar, and punctuation. ## Why It's Good For The Game Improves readability and user experience. ## Changelog 🆑 spellcheck: fixed a few typos /🆑
19 lines
863 B
Plaintext
19 lines
863 B
Plaintext
/**
|
|
* Goes through every subtype of /obj/item/stack to check for a singular name, var/singular_name.
|
|
* Everything within the blacklist does not need to be tested because it exists to be overridden.
|
|
* This test will fail if a subtype of /obj/item/stack is missing a singular name.
|
|
*/
|
|
/datum/unit_test/stack_singular_name
|
|
|
|
/datum/unit_test/stack_singular_name/Run()
|
|
var/list/blacklist = list( // all of these are generally parents that exist to be overridden; ex. /obj/item/stack/license_plates exists to branch into /filled and /empty
|
|
/obj/item/stack/sheet,
|
|
/obj/item/stack/sheet/mineral,
|
|
/obj/item/stack/license_plates,
|
|
/obj/item/stack/sheet/animalhide,
|
|
)
|
|
|
|
for(var/obj/item/stack/stack_check as anything in subtypesof(/obj/item/stack) - blacklist)
|
|
if(!initial(stack_check.singular_name))
|
|
TEST_FAIL("[stack_check] is missing a singular name!")
|