mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 04:22:39 +01:00
The moved event again returns the correct result from parent.
Fixes #12072. Fixes #12075. Fixes #12076. Fixes #12078. Fixes #12096.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Unit tests for built-in BYOND procs, to ensure overrides have not affected functionality.
|
||||
*/
|
||||
datum/unit_test/foundation
|
||||
name = "FOUNDATION template"
|
||||
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)
|
||||
pass("step() returned true.")
|
||||
else
|
||||
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(20,20,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
|
||||
Reference in New Issue
Block a user