mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-21 15:42:35 +00:00
* Initial experiment * holy shit the pain of this rabbit hole * F * F * F * F * FFF * FFFF * FFFFFFFFF * FFFFFFFFFF * FF * ffffff * ffffffff * F^F * FFFFFF * F * Robusted * F * Some readability, hopefully * Fear * Aurora was a mistake * Horrors beyond our comprehension * Use the appropriate macro across the tests * Brah * FF * Mute janitors robusting the ling * Frail doctors revealing to be more trained than a KGB sleeper agent when the crew armory opens * FFFFFFF * gujbjh * Shitcode, shitcode everywhere * Pain * Cursed codebase * Fix AI mask qdel, SQL tests to macro * Attempt at github grouping * Take two * Brah * Maybe this looks better * Different formatting * FFS * Visuals * pain * FFFFF * hyuh * fgdsgd * igyguybujgb * Just calling the parent here * dsfs * fdsaf * Move more pieces to use the macros * Finish moving to macro * gah * Changelog, some touchups * Fix another found runtime * GDI
46 lines
1.7 KiB
Plaintext
46 lines
1.7 KiB
Plaintext
// 513 does not allow white or no color as a filter color
|
|
/datum/unit_test/overmap_effects_shall_have_non_white_color
|
|
name = "OVERMAP: Shall have non-white color"
|
|
|
|
/datum/unit_test/overmap_effects_shall_have_non_white_color/start_test()
|
|
var/list/invalid_overmap_types = list()
|
|
for(var/omt in subtypesof(/obj/effect/overmap))
|
|
var/obj/overmap = omt
|
|
var/color = initial(overmap.color)
|
|
if(!color || color == COLOR_WHITE)
|
|
invalid_overmap_types += omt
|
|
|
|
if(invalid_overmap_types.len)
|
|
TEST_FAIL("Following /obj/effect/overmap types types have invalid colors: [english_list(invalid_overmap_types)]")
|
|
else
|
|
TEST_PASS("All /obj/effect/overmap types have a valid color")
|
|
|
|
return TRUE
|
|
|
|
/datum/unit_test/overmap_ships_shall_have_entrypoints
|
|
name = "OVERMAP: Ships shall have at least four valid entry points"
|
|
|
|
/datum/unit_test/overmap_ships_shall_have_entrypoints/start_test()
|
|
for(var/obj/effect/overmap/visitable/ship/S in SSshuttle.initialized_sectors)
|
|
if(length(S.entry_points) >= 4)
|
|
TEST_PASS("[S.name] ([S.type]) has at least four entry points.")
|
|
else
|
|
TEST_FAIL("[S.name] ([S.type]) does not have at least four entry points!")
|
|
return TRUE
|
|
|
|
/datum/unit_test/overmap_ships_shall_have_class
|
|
name = "OVERMAP: Ships shall have class and designation"
|
|
|
|
/datum/unit_test/overmap_ships_shall_have_class/start_test()
|
|
var/failures = 0
|
|
for(var/obj/effect/overmap/visitable/ship/S in SSshuttle.initialized_sectors)
|
|
if(!length(S.class))
|
|
TEST_FAIL("[S.name] ([S.type]) does not have a class defined.")
|
|
failures++
|
|
if(!length(S.designation))
|
|
TEST_FAIL("[S.name] ([S.type]) does not have a designation defined.")
|
|
failures++
|
|
if(!failures)
|
|
TEST_PASS("All ships have a class and designation.")
|
|
return TRUE
|