Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save trycf/fb1a4a597bd8809acc9b97bc7d88bcf4 to your computer and use it in GitHub Desktop.
Save trycf/fb1a4a597bd8809acc9b97bc7d88bcf4 to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
function assert( actual, expected ) {
if ( compare( expected, actual ) == 0 ) {
writeOutput( "✔" )
} else {
writeOutput( "✗" )
}
writeOutput( " expected `#expected#`, got `#actual#`<br>" );
}
todayDate = createDate(2024, 4, 7);
assert( datePart("w", todayDate), 1 );
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment