mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-30 08:38:15 +01:00
better frag checking
This commit is contained in:
parent
c7a3f9be3f
commit
ae1b2f0acb
2 changed files with 4 additions and 1 deletions
|
@ -309,6 +309,7 @@
|
|||
<test-case id="ConflictResolution__77782" compare="fragment"/>
|
||||
<test-case id="ConflictResolution__77783" compare="fragment"/>
|
||||
<test-case id="ConflictResolution__77784" compare="fragment"/>
|
||||
<test-case id="ConflictResolution__77802" compare="fragment"/>
|
||||
<test-case id="ConflictResolution__77833" compare="fragment"/>
|
||||
<test-case id="ConflictResolution__77847" compare="fragment"/>
|
||||
<test-case id="ConflictResolution__77870" compare="fragment"/>
|
||||
|
|
|
@ -394,7 +394,7 @@ protected:
|
|||
if(refs2 == outs2)
|
||||
return;
|
||||
|
||||
assertImplementation(false, "Expected XML frag:\n" + refs + "\nbut got:\n" + outs);
|
||||
assertImplementation(false, "Expected XML frag:\n" + refs + "\nbut got:\n" + outs + "\n=====\n" + refs2 + "\nbut:\n" + outs2 + "\n\n====\n\n");
|
||||
} // runTest
|
||||
|
||||
std::string docToString(Arabica::DOM::Node<std::string> node)
|
||||
|
@ -419,6 +419,8 @@ protected:
|
|||
index = text.find_first_of(" ");
|
||||
}
|
||||
t.setNodeValue(text);
|
||||
if(text.length() == 0)
|
||||
t.getParentNode().removeChild(t);
|
||||
}
|
||||
} // stripWhitespace
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue