From 2e5ad950bf07245b4cdefa47c740c093b5125eeb Mon Sep 17 00:00:00 2001 From: ike709 Date: Wed, 18 Dec 2024 14:22:59 -0600 Subject: [PATCH] Fix a bad proc param test (#2113) Co-authored-by: ike709 --- .../Expression/proccall_keyword_param.dm | 13 ------------- .../Tests/Expression/proccall_keyword_param.dm | 11 +++++++++++ 2 files changed, 11 insertions(+), 13 deletions(-) delete mode 100644 Content.Tests/DMProject/Broken Tests/Expression/proccall_keyword_param.dm create mode 100644 Content.Tests/DMProject/Tests/Expression/proccall_keyword_param.dm diff --git a/Content.Tests/DMProject/Broken Tests/Expression/proccall_keyword_param.dm b/Content.Tests/DMProject/Broken Tests/Expression/proccall_keyword_param.dm deleted file mode 100644 index 87f90f6e81..0000000000 --- a/Content.Tests/DMProject/Broken Tests/Expression/proccall_keyword_param.dm +++ /dev/null @@ -1,13 +0,0 @@ - -//# issue 655 -//# issue 265 - -// TODO: We error on this when BYOND doesn't. Revisit this test when we can selectively disable/enable errors with pragmas - -/obj/proc/nullproc(null, temp) - ASSERT(null == 1) - ASSERT(temp == 2) - -/proc/RunTest() - var/obj/o = new - o.nullproc(1,2) diff --git a/Content.Tests/DMProject/Tests/Expression/proccall_keyword_param.dm b/Content.Tests/DMProject/Tests/Expression/proccall_keyword_param.dm new file mode 100644 index 0000000000..89b4065260 --- /dev/null +++ b/Content.Tests/DMProject/Tests/Expression/proccall_keyword_param.dm @@ -0,0 +1,11 @@ + +//# issue 655 +//# issue 265 + +/datum/proc/nullproc(null, temp) + ASSERT(isnull(null)) + ASSERT(temp == 2) + +/proc/RunTest() + var/datum/D = new + D.nullproc(1,2)