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.
>
>
>
>
> 

Reply via email to