Thanks Marc,
Just to clarify, "equals" means content and "same" means two variables
reference the same object. I'm finding that when I compare two
queries, one from the DB and one I created with QueryNew() and
QuerySetCell(), even though they look the same if I print them out --
that is use cfdump/debug() -- they don't match when I do
assertEquals(queryFromDB, queryCreatedByMe). It would seem to me that
"assertEquals" is what I want because I want to compare content, not
whether they reference the same object (because I know they don't).
However, this assert fails, and I believe the reason is because it is
using "toString()" to do the comparison.
If I'm supposed to be using "assertSame", then please let me know (and
sorry for misunderstanding which to use). It sounds like I should be
using "assertEquals" though, so I'm kind of stumped.
- Andrew
On May 6, 7:12 am, "Marc Esher" <
marc.es...@gmail.com> wrote:
> Andrew, assertEquals was working as it should. in mxunit, "equals"
> means content. if you want to test if two objects are the same, try
> assertSame().
>
> best,
>
> marc
>
> On Mon, May 5, 2008 at 11:06 PM, Andrew Bialecki
>