lucee.Componentcommandbox.system.modules_app.system-commands.commands.assertEqual
Returns a passing (0) or failing (1) exit code whether both parameters match. Command outputs nothing. Comparison is case insensitive. . {code:bash} assertEqual `package show name` "My Package" || package set name="My Package" assertEqual ${ENVIRONMENT} production && install --production {code} Values are not trimmed, but you can trim them if you want . {code:bash} assertEqual "brad" `ECHO " BRAD " | #trim` && ECHO HI {code}
Method Summary | |
---|---|
any
|
run(string value1, string value2)
|
Methods inherited from class lucee.Component |
---|
None |
Method Detail |
---|
value1
- A value to be compared to value2value2
- A value to be compared to value1