mirror of
https://github.com/ethauvin/JSON-java.git
synced 2025-06-17 07:50:52 -07:00
fixed comment test 83.2% coverage
This commit is contained in:
parent
de13c7de86
commit
e80ded6ebe
1 changed files with 2 additions and 5 deletions
|
@ -319,7 +319,7 @@ public class JSONMLTest {
|
|||
"<!-- this is a comment -->\n"+
|
||||
"<addresses>\n"+
|
||||
"<address>\n"+
|
||||
"<![CDATA[ this is -- <another> comment ]]>\n"+
|
||||
"<!-- <!--[CDATA[ this is -- <another> comment ]] -->\n"+
|
||||
"<name>Joe Tester</name>\n"+
|
||||
"<!-- this is a - multi line \n"+
|
||||
"comment -->\n"+
|
||||
|
@ -329,7 +329,6 @@ public class JSONMLTest {
|
|||
String expectedStr =
|
||||
"[\"addresses\","+
|
||||
"[\"address\","+
|
||||
"\" this is -- <another> comment \","+
|
||||
"[\"name\",\"Joe Tester\"],"+
|
||||
"[\"street\",\"Baker street 5\"]"+
|
||||
"]"+
|
||||
|
@ -339,9 +338,7 @@ public class JSONMLTest {
|
|||
String xmlToStr = JSONML.toString(jsonArray);
|
||||
JSONArray finalJsonArray = JSONML.toJSONArray(xmlToStr);
|
||||
Util.compareActualVsExpectedJsonArrays(jsonArray, expectedJsonArray);
|
||||
// TODO this test fails because JSONML.toString() escapes the
|
||||
// <> chars in the comment.
|
||||
// Util.compareActualVsExpectedJsonArrays(finalJsonArray, expectedJsonArray);
|
||||
Util.compareActualVsExpectedJsonArrays(finalJsonArray, expectedJsonArray);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue