mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-02 21:42:41 +00:00
* the boulder must be pushed * awk? * sadfasdf * sadf * sadfsda * asdf * sdfasafd * asdfsad * asdf * dsfafa * despair * sadfsda * sdfsadf * 1589 * sdaf * sadfasd * asdf * safsadf * fdsafsa * add create and destroy * fdsa * sdafasfsda * pods for away sites * oopsie * hgdfs * i am speed * sdafas * hopefully this works first trAHAHAHAH * asdf * dfsadasf * sfasdf * 6461 * dsfasfd * sfda * fsd * sdfas * fsdaf * sadf * safasf * sudo * sadfsad * dfsdf
32 lines
906 B
Plaintext
32 lines
906 B
Plaintext
/*
|
|
* Unit tests for built-in BYOND procs, to ensure overrides have not affected functionality.
|
|
*/
|
|
/datum/unit_test/foundation
|
|
name = "FOUNDATION template"
|
|
groups = list("generic")
|
|
|
|
async = 0
|
|
|
|
/datum/unit_test/foundation/step_shall_return_true_on_success
|
|
name = "FOUNDATION: step() shall return true on success"
|
|
|
|
/datum/unit_test/foundation/step_shall_return_true_on_success/start_test()
|
|
var/mob_step_result = TestStep(/mob)
|
|
var/obj_step_result = TestStep(/obj)
|
|
|
|
if(mob_step_result && obj_step_result)
|
|
TEST_PASS("step() returned true.")
|
|
else
|
|
TEST_FAIL("step() did not return true: Mob result: [mob_step_result] - Obj result: [obj_step_result].")
|
|
|
|
return 1
|
|
|
|
/datum/unit_test/foundation/proc/TestStep(type_to_test)
|
|
var/turf/start = locate(71,155,1)
|
|
var/atom/movable/T = new type_to_test(start)
|
|
|
|
. = step(T, NORTH)
|
|
. = . && start.x == T.x
|
|
. = . && start.y + 1 == T.y
|
|
. = . && start.z == T.z
|