Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save trycf/850662c058d620ce94f39e2c7e43737b to your computer and use it in GitHub Desktop.
Save trycf/850662c058d620ce94f39e2c7e43737b to your computer and use it in GitHub Desktop.
TryCF Gist
<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