Skip to content
Closed
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
37 changes: 37 additions & 0 deletions Content.Tests/DMProject/Tests/Indent/relative_path_vars.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/datum/foo
var/thing = 2

var
tmp
active = 0
deleting = 0
full_delete
delay = 5
list
connected = list()

height = null

proc/thing()

var
baz = list() //doesn't find the list()

var foo = 2 //collects both of these at once, doesn't find the 2
var bar

Del()

/datum/foo/var
datum/a
datum/b

/proc/RunTest()
var/datum/foo/F = new
ASSERT(F.active == 0)
ASSERT(F.deleting == 0)
ASSERT(isnull(F.full_delete))
ASSERT(F.delay == 5)
ASSERT(islist(F.connected))
ASSERT(!length(F.connected))
ASSERT(isnull(F.height))
Loading
Loading