Skip to content

Instantly share code, notes, and snippets.

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