Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Content.IntegrationTests/DMProject/Tests/change_area_appearance.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/area/subtype
color = rgb(255,0,0)

/datum/unit_test/test_change_area_appearance/RunTest()
var/area/subtype/S = new()
var/list/block_turfs = block(locate(1,1,1), locate(2,2,2))
for(var/turf/T in block_turfs)
S.contents += T

ASSERT(istype(locate(1,1,1):loc, /area/subtype))
locate(1,1,1):loc:color = rgb(0,0,0)
ASSERT(locate(2,2,2):loc:color == rgb(0,0,0))
17 changes: 17 additions & 0 deletions Content.IntegrationTests/DMProject/Tests/change_world_size.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/datum/unit_test/test_change_world_size/RunTest()
var/oldz = world.maxz
var/oldx = world.maxx
var/oldy = world.maxy
world.maxz = oldz+1
ASSERT(world.maxz == oldz+1)
world.maxx = oldx+1
ASSERT(world.maxx == oldx+1)
world.maxy = oldy+1
ASSERT(world.maxy == oldy+1)
ASSERT(istype(locate(oldx+1, oldy+1, oldz+1), /turf))

world.maxz = oldz
world.maxx = oldx
world.maxy = oldy
ASSERT(isnull(locate(oldx+1, oldy+1, oldz+1)))

Loading