Entries Tagged as 'Testing'

Case-sensitive assertEquals Assertion in MXUnit

If you use the MXUnit testing framework for ColdFusion, you might have come across this earlier -- the assertEquals assertion is case-insensitive.

This means that if you try and compare a string like 'abs' and 'Abs', assertEquals returns true.

And that is ok in certain cases, but is not ok in many other. I guess it boils down to the fact that at the end of the day, ColdFusion is case-insensitive. A variable called 'firstName' is the treated the same as 'FirstName'.

Read more...