mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-25 04:57:47 +01:00
Merge pull request #1708 from VOREStation/activeedges
Adds an 'Active Edges' map test
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
if(!A.air_vent_info.len && !(A.type in exempt_from_atmos))
|
||||
log_unit_test("[bad_msg] lacks an Air vent.")
|
||||
area_good = 0
|
||||
|
||||
|
||||
if(!area_good)
|
||||
bad_areas.Add(A)
|
||||
|
||||
@@ -97,3 +97,17 @@
|
||||
pass("All \[[wire_test_count]\] wires had no overlapping cables going the same direction.")
|
||||
|
||||
return 1
|
||||
|
||||
/datum/unit_test/active_edges
|
||||
name = "MAP: Active edges (all maps)"
|
||||
|
||||
/datum/unit_test/active_edges/start_test()
|
||||
|
||||
var/active_edges = air_master.active_edges.len
|
||||
|
||||
if(active_edges)
|
||||
fail("Maps contained [active_edges] active edges at round-start.")
|
||||
else
|
||||
pass("No active edges.")
|
||||
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user