-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
334 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 0 additions & 6 deletions
6
Content.Tests/DMProject/Broken Tests/Procs/Arglist/initial.dm
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
|
||
|
||
/datum/test/var/bar = "foobar" | ||
/datum/test | ||
/proc/RunTest() | ||
var/datum/test/D = __IMPLIED_TYPE__ | ||
ASSERT(D.bar == "foobar") | ||
ASSERT(D == /datum/test) | ||
D = ArgumentTest(__IMPLIED_TYPE__) | ||
|
||
/proc/ArgumentTest(some_argument) | ||
ASSERT(some_argument == /datum/test) |
2 changes: 1 addition & 1 deletion
2
...MProject/Broken Tests/List/ListNullArg.dm → ...Tests/DMProject/Tests/List/ListNullArg.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// RUNTIME ERROR | ||
|
||
/proc/ListNullArg2(a[5][3]) | ||
ASSERT(a[1].len == 3) | ||
ASSERT(a[1].len == 3) // a should be null | ||
|
||
/proc/RunTest() | ||
ListNullArg2() |
2 changes: 1 addition & 1 deletion
2
...Project/Broken Tests/List/ListNullArg1.dm → ...ests/DMProject/Tests/List/ListNullArg1.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// RUNTIME ERROR | ||
|
||
/proc/ListNullArg1(a[5]) | ||
ASSERT(a.len == 5) | ||
ASSERT(a.len == 5) // a should be null | ||
|
||
/proc/RunTest() | ||
ListNullArg1() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
/proc/_initial(...) | ||
ASSERT(initial(arglist(args))[1] == "foo") | ||
|
||
/proc/RunTest() | ||
_initial("foo") |
2 changes: 1 addition & 1 deletion
2
... Tests/Statements/For/reuse_decl_const.dm → .../Tests/Statements/For/reuse_decl_const.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// COMPILE ERROR | ||
// COMPILE ERROR OD0501 | ||
|
||
/datum | ||
var/const/idx = 0 | ||
|
18 changes: 18 additions & 0 deletions
18
Content.Tests/DMProject/Tests/Statements/For/reuse_decl_const2.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// COMPILE ERROR OD0501 | ||
|
||
/datum | ||
var/const/idx = 0 | ||
var/c = 0 | ||
proc/do_loop() | ||
for (idx in list(1,2,3)) | ||
c += idx | ||
|
||
/proc/RunTest() | ||
var/datum/d = new | ||
d.do_loop() | ||
|
||
var/const/idx = 0 | ||
var/c = 0 | ||
for (idx in list(1,2,3)) | ||
c += idx | ||
|
6 changes: 6 additions & 0 deletions
6
Content.Tests/DMProject/Tests/Statements/extra_token_pragma.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// COMPILE ERROR OD3205 | ||
#pragma ExtraToken error | ||
|
||
/proc/RunTest() | ||
if(1). | ||
ASSERT(TRUE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,7 @@ | |
ASSERT(TRUE) | ||
else | ||
ASSERT(FALSE) | ||
for(var/i in 1 to 1): | ||
ASSERT(TRUE) | ||
for(var/i in 1 to 1). | ||
ASSERT(TRUE) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.