You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

test_deep_copy.expected 2.9 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. PASSED - loaded input data
  2. PASSED - all json_object_deep_copy() returned succesful
  3. PASSED - all json_object_deep_copy() returned EINVAL for non-null pointer
  4. PASSED - all json_object_equal() tests returned succesful
  5. PASSED - comparison of string output
  6. PASSED - trying to overrwrite an object that has refcount > 1
  7. Printing JSON objects for visual inspection
  8. ------------------------------------------------
  9. JSON1
  10. {
  11. "glossary":{
  12. "title":"example glossary",
  13. "GlossDiv":{
  14. "title":"S",
  15. "null_obj":null,
  16. "GlossList":{
  17. "GlossEntry":{
  18. "ID":"SGML",
  19. "SortAs":"SGML",
  20. "GlossTerm":"Standard Generalized Markup Language",
  21. "Acronym":"SGML",
  22. "Abbrev":"ISO 8879:1986",
  23. "GlossDef":{
  24. "para":"A meta-markup language, used to create markup languages such as DocBook.",
  25. "GlossSeeAlso":[
  26. "GML",
  27. "XML"
  28. ]
  29. },
  30. "GlossSee":"markup"
  31. }
  32. }
  33. }
  34. }
  35. }------------------------------------------------
  36. ------------------------------------------------
  37. JSON2
  38. {
  39. "menu":{
  40. "header":"SVG Viewer",
  41. "items":[
  42. {
  43. "id":"Open"
  44. },
  45. {
  46. "id":"OpenNew",
  47. "label":"Open New"
  48. },
  49. null,
  50. {
  51. "id":"ZoomIn",
  52. "label":"Zoom In"
  53. },
  54. {
  55. "id":"ZoomOut",
  56. "label":"Zoom Out"
  57. },
  58. {
  59. "id":"OriginalView",
  60. "label":"Original View"
  61. },
  62. null,
  63. {
  64. "id":"Quality",
  65. "another_null":null
  66. },
  67. {
  68. "id":"Pause"
  69. },
  70. {
  71. "id":"Mute"
  72. },
  73. null,
  74. {
  75. "id":"Find",
  76. "label":"Find..."
  77. },
  78. {
  79. "id":"FindAgain",
  80. "label":"Find Again"
  81. },
  82. {
  83. "id":"Copy"
  84. },
  85. {
  86. "id":"CopyAgain",
  87. "label":"Copy Again"
  88. },
  89. {
  90. "id":"CopySVG",
  91. "label":"Copy SVG"
  92. },
  93. {
  94. "id":"ViewSVG",
  95. "label":"View SVG"
  96. },
  97. {
  98. "id":"ViewSource",
  99. "label":"View Source"
  100. },
  101. {
  102. "id":"SaveAs",
  103. "label":"Save As"
  104. },
  105. null,
  106. {
  107. "id":"Help"
  108. },
  109. {
  110. "id":"About",
  111. "label":"About Adobe CVG Viewer..."
  112. }
  113. ]
  114. }
  115. }------------------------------------------------
  116. ------------------------------------------------
  117. JSON3
  118. ------------------------------------------------
  119. {
  120. "menu":{
  121. "id":"file",
  122. "value":"File",
  123. "popup":{
  124. "menuitem":[
  125. {
  126. "value":"New",
  127. "onclick":"CreateNewDoc()"
  128. },
  129. {
  130. "value":"Open",
  131. "onclick":"OpenDoc()"
  132. },
  133. {
  134. "value":"Close",
  135. "onclick":"CloseDoc()"
  136. }
  137. ]
  138. }
  139. }
  140. }------------------------------------------------