Not sure if this is a recent change in mxunit, but
unittests.util.CollectionTest.testSortEmptyArray fails with the
message
from Assert.cfc@416
"Cannot compare array references in ColdFusion
Arrays in ColdFusion are passed by value. To compare instances, you
may wrap the array in a struct and compare those."
Doing as suggested and wrapping the arrays in a struct allows the test
to pass.
On Fri, Jan 20, 2012 at 9:33 PM, Chris Blackwell <ch...@team193.com> wrote: > Not sure if this is a recent change in mxunit, but > unittests.util.CollectionTest.testSortEmptyArray fails with the > message
> from Assert.cfc@416 > "Cannot compare array references in ColdFusion > Arrays in ColdFusion are passed by value. To compare instances, you > may wrap the array in a struct and compare those."
> Doing as suggested and wrapping the arrays in a struct allows the test > to pass.
> I ran the tests on railo-express 3.3.1.010, but this doesn't appear to > be engine specific
> Cheers, Chris
> -- > You received this message because you are subscribed to the Google Groups > "ColdSpring-Users" group. > To post to this group, send email to coldspring-users@googlegroups.com. > To unsubscribe from this group, send email to > coldspring-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/coldspring-users?hl=en.
> Actually, thanks for reminding me - I have to set up a pull request to
> mxunit to get rid of that restriction.
> I have it locally (hence my tests passing).
> Mark
> On Fri, Jan 20, 2012 at 9:33 PM, Chris Blackwell <ch...@team193.com> wrote:
> > Not sure if this is a recent change in mxunit, but
> > unittests.util.CollectionTest.testSortEmptyArray fails with the
> > message
> > from Assert.cfc@416
> > "Cannot compare array references in ColdFusion
> > Arrays in ColdFusion are passed by value. To compare instances, you
> > may wrap the array in a struct and compare those."
> > Doing as suggested and wrapping the arrays in a struct allows the test
> > to pass.
> > I ran the tests on railo-express 3.3.1.010, but this doesn't appear to
> > be engine specific
> > Cheers, Chris
> > --
> > You received this message because you are subscribed to the Google Groups
> > "ColdSpring-Users" group.
> > To post to this group, send email to coldspring-users@googlegroups.com.
> > To unsubscribe from this group, send email to
> > coldspring-users+unsubscribe@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/coldspring-users?hl=en.
On Fri, Jan 20, 2012 at 10:19 PM, Chris Blackwell <ch...@team193.com> wrote: > Just out of curiosity, what've you changed in mxunit to allow this? > array's are still passed by value right?
> On Jan 20, 11:02 am, Mark Mandel <mark.man...@gmail.com> wrote: > > Actually, thanks for reminding me - I have to set up a pull request to > > mxunit to get rid of that restriction.
> > I have it locally (hence my tests passing).
> > Mark
> > On Fri, Jan 20, 2012 at 9:33 PM, Chris Blackwell <ch...@team193.com> > wrote: > > > Not sure if this is a recent change in mxunit, but > > > unittests.util.CollectionTest.testSortEmptyArray fails with the > > > message
> > > from Assert.cfc@416 > > > "Cannot compare array references in ColdFusion > > > Arrays in ColdFusion are passed by value. To compare instances, you > > > may wrap the array in a struct and compare those."
> > > Doing as suggested and wrapping the arrays in a struct allows the test > > > to pass.
> > > I ran the tests on railo-express 3.3.1.010, but this doesn't appear to > > > be engine specific
> > > Cheers, Chris
> > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "ColdSpring-Users" group. > > > To post to this group, send email to coldspring-users@googlegroups.com > . > > > To unsubscribe from this group, send email to > > > coldspring-users+unsubscribe@googlegroups.com. > > > For more options, visit this group at > > >http://groups.google.com/group/coldspring-users?hl=en.
> -- > You received this message because you are subscribed to the Google Groups > "ColdSpring-Users" group. > To post to this group, send email to coldspring-users@googlegroups.com. > To unsubscribe from this group, send email to > coldspring-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/coldspring-users?hl=en.