Created
May 8, 2022 18:03
-
-
Save trycf/850662c058d620ce94f39e2c7e43737b to your computer and use it in GitHub Desktop.
TryCF Gist
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
<cfscript> | |
function f(required string param1, required numeric param2, ... date param3) { | |
return arguments | |
} | |
result = f("a string", 42, createDate(2011,3,24), createDate(2016, 8, 17)) | |
writeDump(var=result, label="actual") | |
expected = { | |
param1 = "a string", | |
param2 = 42, | |
param3 = [createDate(2011,3,24), createDate(2016, 8, 17)] | |
} | |
writeDump(var=expected, label="expected") | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment