Created
May 23, 2024 13:08
-
-
Save trycf/b3dfbda108ee0e1657463ecd7b99f6b9 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 assert( actual, expected ) { | |
if ( compare( expected, actual ) == 0 ) { | |
writeOutput( "✔" ) | |
} else { | |
writeOutput( "✗" ) | |
} | |
writeOutput( " expected `#expected#`, got `#actual#`<br>" ); | |
} | |
setLocale( "es_SV"); | |
actual = getlocaleinfo(); | |
assert( actual.country, "SV" ); | |
assert( actual.language, "es" ); | |
assert( actual.name, "español (El Salvador)" ); | |
assert( actual.variant, "" ); | |
assert( actual.display.country, "El Salvador" ); | |
assert( actual.display.language, "español" ); | |
assert( actual.iso.country, "SLV" ); | |
assert( actual.iso.language, "spa" ); | |
dump( actual ); | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment