Skip to content

Instantly share code, notes, and snippets.

@eiennohito
Created April 16, 2012 12:39
Show Gist options
  • Save eiennohito/2398496 to your computer and use it in GitHub Desktop.
Save eiennohito/2398496 to your computer and use it in GitHub Desktop.
test("xmlparser parses double tag") {
val xml = p("""<div>
<span>hey!</span>
</div>""")
val parsed = xml.toArray
parsed should have length (5)
parsed(3) should have {'pos (List("div", "span"))}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment