Davis Ford wrote:
>
>
> Why does this test fail? Is there any way to test for equality that
> ignores the ordering of elements -- which shouldn't technically matter?
>
> [Test]
> public function testXmlEquality():void {
> var xml1:XML =
> <a>
> <b></b>
> <c></c>
> </a>;
> var xml2:XML =
> <a>
> <c></c>
> <b></b>
> </a>;
> Assert.assertTrue(xml1 == xml2);
> }
xml1 and xml2 are references to objects. Because they are different
objects they are not equal - the references are different.
>
>
>
>
> - [flexcoders] Testing for XML equality Davis Ford
- Re: [flexcoders] Testing for XML equality Paul Andrews
- Re: [flexcoders] Testing for XML equality Davis Ford
- Re: [flexcoders] Testing for XML equality Davis Ford
- Re: [flexcoders] Testing for XML equality Paul Andrews
- Re: [flexcoders] Testing for XML equality Davis Ford
- RE: [flexcoders] Testing for XML equali... Gordon Smith
- Re: [flexcoders] Testing for XML eq... Davis Ford

