Export to GitHub

specs - issue #77

XML Matcher does not support Groups


Posted on May 23, 2009 by Happy Kangaroo

val x1 = <container><foo /><bar /></container> val x2 = <container>{ Group(<foo /><bar />) }</container>

x1 must ==/(x2)

java.lang.UnsupportedOperationException: class Group does not support method 'label'

I tracked it to xml.NodeFunctions#isEqualIgnoringSpace

Specs: 1.4.4 Scala: 2.7.4 OS: Linux (Debian Testing)

I used the scala.xml.Utility#trim methods todo a comparison. This seems to remove group and any literal formatting.

Comment #1

Posted on May 23, 2009 by Massive Giraffe

This issue was closed by r1048.

Comment #2

Posted on Feb 14, 2010 by Massive Giraffe

(No comment was entered for this change.)

Status: Verified

Labels:
Type-Defect Priority-Medium