Skip to content

Commit

Permalink
fixes #1395
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Mar 19, 2020
1 parent 98a20f9 commit eab6af6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/org/rascalmpl/library/lang/xml/IO.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,12 @@ test bool attributeTest() {
val = readXML(example);

return val == "aap"([], age="1");
}

test bool namespaceTest() {
example = "\<aap xmlns:ns=\"http://trivial\" ns:age=\"1\" age=\"2\"\>\</aap\>";

val = readXML(example, fullyQualify=true);

return "aap"([], \ns-age="1", age="2") := val;
}

0 comments on commit eab6af6

Please sign in to comment.