mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-06 10:45:23 +08:00
fixed comment location
This commit is contained in:
@@ -329,11 +329,11 @@ public class XMLTest {
|
|||||||
inputJSON.put("nullValue", JSONObject.NULL);
|
inputJSON.put("nullValue", JSONObject.NULL);
|
||||||
// This is a possible preferred result
|
// This is a possible preferred result
|
||||||
String expectedXML = "<nullValue/>";
|
String expectedXML = "<nullValue/>";
|
||||||
String actualXML = "<nullValue>null</nullValue>";
|
|
||||||
/**
|
/**
|
||||||
* This is the current behavior. JSONObject.NULL is emitted as
|
* This is the current behavior. JSONObject.NULL is emitted as
|
||||||
* the string, "null".
|
* the string, "null".
|
||||||
*/
|
*/
|
||||||
|
String actualXML = "<nullValue>null</nullValue>";
|
||||||
String resultXML = XML.toString(inputJSON);
|
String resultXML = XML.toString(inputJSON);
|
||||||
assertEquals(actualXML, resultXML);
|
assertEquals(actualXML, resultXML);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user