json-as 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (256) hide show
  1. package/CHANGELOG.md +417 -0
  2. package/README.md +96 -14
  3. package/assembly/deserialize/index/typedarray.ts +14 -0
  4. package/assembly/deserialize/simd/string.ts +3 -3
  5. package/assembly/deserialize/simple/string.ts +88 -2
  6. package/assembly/deserialize/swar/string.ts +8 -11
  7. package/assembly/index.ts +137 -181
  8. package/assembly/serialize/index/arbitrary.ts +5 -0
  9. package/assembly/serialize/index/typedarray.ts +65 -0
  10. package/assembly/serialize/simd/string.ts +3 -11
  11. package/assembly/serialize/simple/arbitrary.ts +6 -0
  12. package/assembly/serialize/simple/string.ts +3 -11
  13. package/assembly/serialize/swar/string.ts +3 -11
  14. package/assembly/util/swar.ts +49 -0
  15. package/lib/as-bs.ts +88 -69
  16. package/package.json +19 -1
  17. package/transform/lib/index.d.ts +1 -0
  18. package/transform/lib/index.d.ts.map +1 -1
  19. package/transform/lib/index.js +153 -32
  20. package/transform/lib/index.js.map +1 -1
  21. package/transform/lib/linkers/custom.d.ts.map +1 -1
  22. package/transform/lib/linkers/custom.js +7 -3
  23. package/transform/lib/linkers/custom.js.map +1 -1
  24. package/transform/lib/types.d.ts +2 -0
  25. package/transform/lib/types.d.ts.map +1 -1
  26. package/transform/lib/types.js +13 -0
  27. package/transform/lib/types.js.map +1 -1
  28. package/.as-test/coverage/naive/coverage.arbitrary.spec.ts.log.json +0 -5628
  29. package/.as-test/coverage/naive/coverage.array.spec.ts.log.json +0 -5187
  30. package/.as-test/coverage/naive/coverage.bool.spec.ts.log.json +0 -5187
  31. package/.as-test/coverage/naive/coverage.box.spec.ts.log.json +0 -5187
  32. package/.as-test/coverage/naive/coverage.custom.spec.ts.log.json +0 -5187
  33. package/.as-test/coverage/naive/coverage.date.spec.ts.log.json +0 -5187
  34. package/.as-test/coverage/naive/coverage.enum.spec.ts.log.json +0 -5187
  35. package/.as-test/coverage/naive/coverage.float.spec.ts.log.json +0 -5187
  36. package/.as-test/coverage/naive/coverage.generics.spec.ts.log.json +0 -5187
  37. package/.as-test/coverage/naive/coverage.hierarchy.spec.ts.log.json +0 -5187
  38. package/.as-test/coverage/naive/coverage.integer.spec.ts.log.json +0 -5187
  39. package/.as-test/coverage/naive/coverage.map.spec.ts.log.json +0 -5187
  40. package/.as-test/coverage/naive/coverage.namespace.spec.ts.log.json +0 -5187
  41. package/.as-test/coverage/naive/coverage.null.spec.ts.log.json +0 -5187
  42. package/.as-test/coverage/naive/coverage.raw.spec.ts.log.json +0 -5187
  43. package/.as-test/coverage/naive/coverage.resolving.spec.ts.log.json +0 -5628
  44. package/.as-test/coverage/naive/coverage.set.spec.ts.log.json +0 -5187
  45. package/.as-test/coverage/naive/coverage.staticarray.spec.ts.log.json +0 -5187
  46. package/.as-test/coverage/naive/coverage.string.spec.ts.log.json +0 -5187
  47. package/.as-test/coverage/naive/coverage.struct.spec.ts.log.json +0 -5187
  48. package/.as-test/coverage/naive/coverage.types.spec.ts.log.json +0 -5187
  49. package/.as-test/coverage/simd/coverage.arbitrary.spec.ts.log.json +0 -5628
  50. package/.as-test/coverage/simd/coverage.array.spec.ts.log.json +0 -5187
  51. package/.as-test/coverage/simd/coverage.bool.spec.ts.log.json +0 -5187
  52. package/.as-test/coverage/simd/coverage.box.spec.ts.log.json +0 -5187
  53. package/.as-test/coverage/simd/coverage.custom.spec.ts.log.json +0 -5187
  54. package/.as-test/coverage/simd/coverage.date.spec.ts.log.json +0 -5187
  55. package/.as-test/coverage/simd/coverage.enum.spec.ts.log.json +0 -5187
  56. package/.as-test/coverage/simd/coverage.float.spec.ts.log.json +0 -5187
  57. package/.as-test/coverage/simd/coverage.generics.spec.ts.log.json +0 -5187
  58. package/.as-test/coverage/simd/coverage.hierarchy.spec.ts.log.json +0 -5187
  59. package/.as-test/coverage/simd/coverage.integer.spec.ts.log.json +0 -5187
  60. package/.as-test/coverage/simd/coverage.map.spec.ts.log.json +0 -5187
  61. package/.as-test/coverage/simd/coverage.namespace.spec.ts.log.json +0 -5187
  62. package/.as-test/coverage/simd/coverage.null.spec.ts.log.json +0 -5187
  63. package/.as-test/coverage/simd/coverage.raw.spec.ts.log.json +0 -5187
  64. package/.as-test/coverage/simd/coverage.resolving.spec.ts.log.json +0 -5628
  65. package/.as-test/coverage/simd/coverage.set.spec.ts.log.json +0 -5187
  66. package/.as-test/coverage/simd/coverage.staticarray.spec.ts.log.json +0 -5187
  67. package/.as-test/coverage/simd/coverage.string.spec.ts.log.json +0 -5187
  68. package/.as-test/coverage/simd/coverage.struct.spec.ts.log.json +0 -5187
  69. package/.as-test/coverage/simd/coverage.types.spec.ts.log.json +0 -5187
  70. package/.as-test/coverage/swar/coverage.arbitrary.spec.ts.log.json +0 -5628
  71. package/.as-test/coverage/swar/coverage.array.spec.ts.log.json +0 -5187
  72. package/.as-test/coverage/swar/coverage.bool.spec.ts.log.json +0 -5187
  73. package/.as-test/coverage/swar/coverage.box.spec.ts.log.json +0 -5187
  74. package/.as-test/coverage/swar/coverage.custom.spec.ts.log.json +0 -5187
  75. package/.as-test/coverage/swar/coverage.date.spec.ts.log.json +0 -5187
  76. package/.as-test/coverage/swar/coverage.enum.spec.ts.log.json +0 -5187
  77. package/.as-test/coverage/swar/coverage.float.spec.ts.log.json +0 -5187
  78. package/.as-test/coverage/swar/coverage.generics.spec.ts.log.json +0 -5187
  79. package/.as-test/coverage/swar/coverage.hierarchy.spec.ts.log.json +0 -5187
  80. package/.as-test/coverage/swar/coverage.integer.spec.ts.log.json +0 -5187
  81. package/.as-test/coverage/swar/coverage.map.spec.ts.log.json +0 -5187
  82. package/.as-test/coverage/swar/coverage.namespace.spec.ts.log.json +0 -5187
  83. package/.as-test/coverage/swar/coverage.null.spec.ts.log.json +0 -5187
  84. package/.as-test/coverage/swar/coverage.raw.spec.ts.log.json +0 -5187
  85. package/.as-test/coverage/swar/coverage.resolving.spec.ts.log.json +0 -5628
  86. package/.as-test/coverage/swar/coverage.set.spec.ts.log.json +0 -5187
  87. package/.as-test/coverage/swar/coverage.staticarray.spec.ts.log.json +0 -5187
  88. package/.as-test/coverage/swar/coverage.string.spec.ts.log.json +0 -5187
  89. package/.as-test/coverage/swar/coverage.struct.spec.ts.log.json +0 -5187
  90. package/.as-test/coverage/swar/coverage.types.spec.ts.log.json +0 -5187
  91. package/.as-test/logs/naive/run.arbitrary.spec.ts.log.json +0 -943
  92. package/.as-test/logs/naive/run.array.spec.ts.log.json +0 -1053
  93. package/.as-test/logs/naive/run.bool.spec.ts.log.json +0 -257
  94. package/.as-test/logs/naive/run.box.spec.ts.log.json +0 -353
  95. package/.as-test/logs/naive/run.custom.spec.ts.log.json +0 -309
  96. package/.as-test/logs/naive/run.date.spec.ts.log.json +0 -397
  97. package/.as-test/logs/naive/run.enum.spec.ts.log.json +0 -343
  98. package/.as-test/logs/naive/run.float.spec.ts.log.json +0 -453
  99. package/.as-test/logs/naive/run.generics.spec.ts.log.json +0 -393
  100. package/.as-test/logs/naive/run.hierarchy.spec.ts.log.json +0 -325
  101. package/.as-test/logs/naive/run.integer.spec.ts.log.json +0 -373
  102. package/.as-test/logs/naive/run.map.spec.ts.log.json +0 -247
  103. package/.as-test/logs/naive/run.namespace.spec.ts.log.json +0 -361
  104. package/.as-test/logs/naive/run.null.spec.ts.log.json +0 -273
  105. package/.as-test/logs/naive/run.raw.spec.ts.log.json +0 -309
  106. package/.as-test/logs/naive/run.resolving.spec.ts.log.json +0 -273
  107. package/.as-test/logs/naive/run.set.spec.ts.log.json +0 -733
  108. package/.as-test/logs/naive/run.staticarray.spec.ts.log.json +0 -931
  109. package/.as-test/logs/naive/run.string.spec.ts.log.json +0 -2289
  110. package/.as-test/logs/naive/run.struct.spec.ts.log.json +0 -523
  111. package/.as-test/logs/naive/run.types.spec.ts.log.json +0 -273
  112. package/.as-test/logs/naive/test.arbitrary.spec.ts.log.json +0 -943
  113. package/.as-test/logs/naive/test.array.spec.ts.log.json +0 -1053
  114. package/.as-test/logs/naive/test.bool.spec.ts.log.json +0 -257
  115. package/.as-test/logs/naive/test.box.spec.ts.log.json +0 -353
  116. package/.as-test/logs/naive/test.custom.spec.ts.log.json +0 -309
  117. package/.as-test/logs/naive/test.date.spec.ts.log.json +0 -397
  118. package/.as-test/logs/naive/test.enum.spec.ts.log.json +0 -343
  119. package/.as-test/logs/naive/test.float.spec.ts.log.json +0 -453
  120. package/.as-test/logs/naive/test.generics.spec.ts.log.json +0 -393
  121. package/.as-test/logs/naive/test.hierarchy.spec.ts.log.json +0 -325
  122. package/.as-test/logs/naive/test.integer.spec.ts.log.json +0 -373
  123. package/.as-test/logs/naive/test.log.json +0 -2289
  124. package/.as-test/logs/naive/test.map.spec.ts.log.json +0 -247
  125. package/.as-test/logs/naive/test.namespace.spec.ts.log.json +0 -361
  126. package/.as-test/logs/naive/test.null.spec.ts.log.json +0 -273
  127. package/.as-test/logs/naive/test.raw.spec.ts.log.json +0 -309
  128. package/.as-test/logs/naive/test.resolving.spec.ts.log.json +0 -273
  129. package/.as-test/logs/naive/test.set.spec.ts.log.json +0 -733
  130. package/.as-test/logs/naive/test.staticarray.spec.ts.log.json +0 -931
  131. package/.as-test/logs/naive/test.string.spec.ts.log.json +0 -2345
  132. package/.as-test/logs/naive/test.struct.spec.ts.log.json +0 -523
  133. package/.as-test/logs/naive/test.types.spec.ts.log.json +0 -273
  134. package/.as-test/logs/simd/run.arbitrary.spec.ts.log.json +0 -943
  135. package/.as-test/logs/simd/run.array.spec.ts.log.json +0 -1053
  136. package/.as-test/logs/simd/run.bool.spec.ts.log.json +0 -257
  137. package/.as-test/logs/simd/run.box.spec.ts.log.json +0 -353
  138. package/.as-test/logs/simd/run.custom.spec.ts.log.json +0 -309
  139. package/.as-test/logs/simd/run.date.spec.ts.log.json +0 -397
  140. package/.as-test/logs/simd/run.enum.spec.ts.log.json +0 -343
  141. package/.as-test/logs/simd/run.float.spec.ts.log.json +0 -453
  142. package/.as-test/logs/simd/run.generics.spec.ts.log.json +0 -393
  143. package/.as-test/logs/simd/run.hierarchy.spec.ts.log.json +0 -325
  144. package/.as-test/logs/simd/run.integer.spec.ts.log.json +0 -373
  145. package/.as-test/logs/simd/run.map.spec.ts.log.json +0 -247
  146. package/.as-test/logs/simd/run.namespace.spec.ts.log.json +0 -361
  147. package/.as-test/logs/simd/run.null.spec.ts.log.json +0 -273
  148. package/.as-test/logs/simd/run.raw.spec.ts.log.json +0 -309
  149. package/.as-test/logs/simd/run.resolving.spec.ts.log.json +0 -273
  150. package/.as-test/logs/simd/run.set.spec.ts.log.json +0 -733
  151. package/.as-test/logs/simd/run.staticarray.spec.ts.log.json +0 -931
  152. package/.as-test/logs/simd/run.string.spec.ts.log.json +0 -2289
  153. package/.as-test/logs/simd/run.struct.spec.ts.log.json +0 -523
  154. package/.as-test/logs/simd/run.types.spec.ts.log.json +0 -273
  155. package/.as-test/logs/simd/test.arbitrary.spec.ts.log.json +0 -943
  156. package/.as-test/logs/simd/test.array.spec.ts.log.json +0 -1053
  157. package/.as-test/logs/simd/test.bool.spec.ts.log.json +0 -257
  158. package/.as-test/logs/simd/test.box.spec.ts.log.json +0 -353
  159. package/.as-test/logs/simd/test.custom.spec.ts.log.json +0 -309
  160. package/.as-test/logs/simd/test.date.spec.ts.log.json +0 -397
  161. package/.as-test/logs/simd/test.enum.spec.ts.log.json +0 -343
  162. package/.as-test/logs/simd/test.float.spec.ts.log.json +0 -453
  163. package/.as-test/logs/simd/test.generics.spec.ts.log.json +0 -393
  164. package/.as-test/logs/simd/test.hierarchy.spec.ts.log.json +0 -325
  165. package/.as-test/logs/simd/test.integer.spec.ts.log.json +0 -373
  166. package/.as-test/logs/simd/test.log.json +0 -11371
  167. package/.as-test/logs/simd/test.map.spec.ts.log.json +0 -247
  168. package/.as-test/logs/simd/test.namespace.spec.ts.log.json +0 -361
  169. package/.as-test/logs/simd/test.null.spec.ts.log.json +0 -273
  170. package/.as-test/logs/simd/test.raw.spec.ts.log.json +0 -309
  171. package/.as-test/logs/simd/test.resolving.spec.ts.log.json +0 -273
  172. package/.as-test/logs/simd/test.set.spec.ts.log.json +0 -733
  173. package/.as-test/logs/simd/test.staticarray.spec.ts.log.json +0 -931
  174. package/.as-test/logs/simd/test.string.spec.ts.log.json +0 -2345
  175. package/.as-test/logs/simd/test.struct.spec.ts.log.json +0 -523
  176. package/.as-test/logs/simd/test.types.spec.ts.log.json +0 -273
  177. package/.as-test/logs/swar/run.arbitrary.spec.ts.log.json +0 -943
  178. package/.as-test/logs/swar/run.array.spec.ts.log.json +0 -1053
  179. package/.as-test/logs/swar/run.bool.spec.ts.log.json +0 -257
  180. package/.as-test/logs/swar/run.box.spec.ts.log.json +0 -353
  181. package/.as-test/logs/swar/run.custom.spec.ts.log.json +0 -309
  182. package/.as-test/logs/swar/run.date.spec.ts.log.json +0 -397
  183. package/.as-test/logs/swar/run.enum.spec.ts.log.json +0 -343
  184. package/.as-test/logs/swar/run.float.spec.ts.log.json +0 -453
  185. package/.as-test/logs/swar/run.generics.spec.ts.log.json +0 -393
  186. package/.as-test/logs/swar/run.hierarchy.spec.ts.log.json +0 -325
  187. package/.as-test/logs/swar/run.integer.spec.ts.log.json +0 -373
  188. package/.as-test/logs/swar/run.map.spec.ts.log.json +0 -247
  189. package/.as-test/logs/swar/run.namespace.spec.ts.log.json +0 -361
  190. package/.as-test/logs/swar/run.null.spec.ts.log.json +0 -273
  191. package/.as-test/logs/swar/run.raw.spec.ts.log.json +0 -309
  192. package/.as-test/logs/swar/run.resolving.spec.ts.log.json +0 -273
  193. package/.as-test/logs/swar/run.set.spec.ts.log.json +0 -733
  194. package/.as-test/logs/swar/run.staticarray.spec.ts.log.json +0 -931
  195. package/.as-test/logs/swar/run.string.spec.ts.log.json +0 -2289
  196. package/.as-test/logs/swar/run.struct.spec.ts.log.json +0 -523
  197. package/.as-test/logs/swar/run.types.spec.ts.log.json +0 -273
  198. package/.as-test/logs/swar/test.arbitrary.spec.ts.log.json +0 -943
  199. package/.as-test/logs/swar/test.array.spec.ts.log.json +0 -1053
  200. package/.as-test/logs/swar/test.bool.spec.ts.log.json +0 -257
  201. package/.as-test/logs/swar/test.box.spec.ts.log.json +0 -353
  202. package/.as-test/logs/swar/test.custom.spec.ts.log.json +0 -309
  203. package/.as-test/logs/swar/test.date.spec.ts.log.json +0 -397
  204. package/.as-test/logs/swar/test.enum.spec.ts.log.json +0 -343
  205. package/.as-test/logs/swar/test.float.spec.ts.log.json +0 -453
  206. package/.as-test/logs/swar/test.generics.spec.ts.log.json +0 -393
  207. package/.as-test/logs/swar/test.hierarchy.spec.ts.log.json +0 -325
  208. package/.as-test/logs/swar/test.integer.spec.ts.log.json +0 -373
  209. package/.as-test/logs/swar/test.log.json +0 -11371
  210. package/.as-test/logs/swar/test.map.spec.ts.log.json +0 -247
  211. package/.as-test/logs/swar/test.namespace.spec.ts.log.json +0 -361
  212. package/.as-test/logs/swar/test.null.spec.ts.log.json +0 -273
  213. package/.as-test/logs/swar/test.raw.spec.ts.log.json +0 -309
  214. package/.as-test/logs/swar/test.resolving.spec.ts.log.json +0 -273
  215. package/.as-test/logs/swar/test.set.spec.ts.log.json +0 -733
  216. package/.as-test/logs/swar/test.staticarray.spec.ts.log.json +0 -931
  217. package/.as-test/logs/swar/test.string.spec.ts.log.json +0 -2345
  218. package/.as-test/logs/swar/test.struct.spec.ts.log.json +0 -523
  219. package/.as-test/logs/swar/test.types.spec.ts.log.json +0 -273
  220. package/.as-test/logs/test.arbitrary.spec.ts.log.json +0 -943
  221. package/.as-test/logs/test.array.spec.ts.log.json +0 -1053
  222. package/.as-test/logs/test.bool.spec.ts.log.json +0 -257
  223. package/.as-test/logs/test.box.spec.ts.log.json +0 -353
  224. package/.as-test/logs/test.custom.spec.ts.log.json +0 -309
  225. package/.as-test/logs/test.date.spec.ts.log.json +0 -397
  226. package/.as-test/logs/test.enum.spec.ts.log.json +0 -343
  227. package/.as-test/logs/test.float.spec.ts.log.json +0 -453
  228. package/.as-test/logs/test.generics.spec.ts.log.json +0 -393
  229. package/.as-test/logs/test.hierarchy.spec.ts.log.json +0 -325
  230. package/.as-test/logs/test.integer.spec.ts.log.json +0 -373
  231. package/.as-test/logs/test.log.json +0 -11371
  232. package/.as-test/logs/test.map.spec.ts.log.json +0 -247
  233. package/.as-test/logs/test.namespace.spec.ts.log.json +0 -361
  234. package/.as-test/logs/test.null.spec.ts.log.json +0 -273
  235. package/.as-test/logs/test.raw.spec.ts.log.json +0 -309
  236. package/.as-test/logs/test.resolving.spec.ts.log.json +0 -273
  237. package/.as-test/logs/test.set.spec.ts.log.json +0 -733
  238. package/.as-test/logs/test.staticarray.spec.ts.log.json +0 -931
  239. package/.as-test/logs/test.string.spec.ts.log.json +0 -2289
  240. package/.as-test/logs/test.struct.spec.ts.log.json +0 -523
  241. package/.as-test/logs/test.types.spec.ts.log.json +0 -273
  242. package/.as-test/runners/default.bindings.js +0 -68
  243. package/.as-test/runners/default.wasi.js +0 -38
  244. package/ARCHITECTURE.md +0 -323
  245. package/CONTRIBUTING.md +0 -244
  246. package/TODO +0 -1
  247. package/as-test.config.json +0 -40
  248. package/assembly/test.ts +0 -24
  249. package/eslint.config.js +0 -68
  250. package/lib/tsconfig.json +0 -8
  251. package/test.ts +0 -99
  252. package/tools/assemblyscript-eslint-local.js +0 -6
  253. package/tools/assemblyscript-eslint.js +0 -53
  254. package/tools/assemblyscript-prettier-plugin.js +0 -33
  255. package/tools/replacer.js +0 -63
  256. package/transform/tsconfig.json +0 -35
@@ -1,943 +0,0 @@
1
- [
2
- {
3
- "file": "assembly/__tests__/arbitrary.spec.ts",
4
- "suites": [
5
- {
6
- "file": "arbitrary.spec.ts",
7
- "order": 8,
8
- "time": {
9
- "start": 35763636.069167,
10
- "end": 35763643.778838
11
- },
12
- "description": "Should serialize arbitrary types",
13
- "depth": 0,
14
- "suites": [],
15
- "tests": [
16
- {
17
- "order": 0,
18
- "type": "",
19
- "verdict": "ok",
20
- "left": "\"hello world\"",
21
- "right": "\"hello world\"",
22
- "instr": "toBe",
23
- "message": "",
24
- "location": "6:3"
25
- },
26
- {
27
- "order": 1,
28
- "type": "",
29
- "verdict": "ok",
30
- "left": "0",
31
- "right": "0",
32
- "instr": "toBe",
33
- "message": "",
34
- "location": "7:3"
35
- },
36
- {
37
- "order": 2,
38
- "type": "",
39
- "verdict": "ok",
40
- "left": "true",
41
- "right": "true",
42
- "instr": "toBe",
43
- "message": "",
44
- "location": "8:3"
45
- },
46
- {
47
- "order": 3,
48
- "type": "",
49
- "verdict": "ok",
50
- "left": "{\"x\":1.0,\"y\":2.0,\"z\":3.0}",
51
- "right": "{\"x\":1.0,\"y\":2.0,\"z\":3.0}",
52
- "instr": "toBe",
53
- "message": "",
54
- "location": "9:3"
55
- },
56
- {
57
- "order": 4,
58
- "type": "",
59
- "verdict": "ok",
60
- "left": "[\"string\",true,3.14,{\"x\":1.0,\"y\":2.0,\"z\":3.0}]",
61
- "right": "[\"string\",true,3.14,{\"x\":1.0,\"y\":2.0,\"z\":3.0}]",
62
- "instr": "toBe",
63
- "message": "",
64
- "location": "10:3"
65
- },
66
- {
67
- "order": 5,
68
- "type": "",
69
- "verdict": "ok",
70
- "left": "{\"schema\":\"http://json-schema.org/draft-07/schema#\",\"additionalProperties\":false,\"properties\":{\"duration\":{\"default\":10.0,\"description\":\"Duration of the operation in seconds\",\"type\":\"number\"},\"steps\":{\"default\":5.0,\"description\":\"Number of steps in the operation\",\"type\":\"number\"}},\"type\":\"object\"}",
71
- "right": "{\"schema\":\"http://json-schema.org/draft-07/schema#\",\"additionalProperties\":false,\"properties\":{\"duration\":{\"default\":10.0,\"description\":\"Duration of the operation in seconds\",\"type\":\"number\"},\"steps\":{\"default\":5.0,\"description\":\"Number of steps in the operation\",\"type\":\"number\"}},\"type\":\"object\"}",
72
- "instr": "toBe",
73
- "message": "",
74
- "location": "26:3"
75
- },
76
- {
77
- "order": 6,
78
- "type": "",
79
- "verdict": "ok",
80
- "left": "null",
81
- "right": "null",
82
- "instr": "toBe",
83
- "message": "",
84
- "location": "28:3"
85
- },
86
- {
87
- "order": 7,
88
- "type": "",
89
- "verdict": "ok",
90
- "left": "123",
91
- "right": "123",
92
- "instr": "toBe",
93
- "message": "",
94
- "location": "29:3"
95
- }
96
- ],
97
- "logs": [],
98
- "kind": "describe",
99
- "verdict": "ok"
100
- },
101
- {
102
- "file": "arbitrary.spec.ts",
103
- "order": 7,
104
- "time": {
105
- "start": 35763643.846957,
106
- "end": 35763646.338178
107
- },
108
- "description": "Should deserialize arbitrary types",
109
- "depth": 0,
110
- "suites": [],
111
- "tests": [
112
- {
113
- "order": 0,
114
- "type": "",
115
- "verdict": "ok",
116
- "left": "hello world",
117
- "right": "hello world",
118
- "instr": "toBe",
119
- "message": "",
120
- "location": "33:3"
121
- },
122
- {
123
- "order": 1,
124
- "type": "",
125
- "verdict": "ok",
126
- "left": "0.0",
127
- "right": "0.0",
128
- "instr": "toBe",
129
- "message": "",
130
- "location": "34:3"
131
- },
132
- {
133
- "order": 2,
134
- "type": "",
135
- "verdict": "ok",
136
- "left": "true",
137
- "right": "true",
138
- "instr": "toBe",
139
- "message": "",
140
- "location": "35:3"
141
- },
142
- {
143
- "order": 3,
144
- "type": "",
145
- "verdict": "ok",
146
- "left": "{\"x\":1.0,\"y\":2.0,\"z\":3.0}",
147
- "right": "{\"x\":1.0,\"y\":2.0,\"z\":3.0}",
148
- "instr": "toBe",
149
- "message": "",
150
- "location": "36:3"
151
- },
152
- {
153
- "order": 4,
154
- "type": "",
155
- "verdict": "ok",
156
- "left": "[\"string\",true,3.14,{\"x\":1.0,\"y\":2.0,\"z\":3.0},[1.0,2.0,3.0,true]]",
157
- "right": "[\"string\",true,3.14,{\"x\":1.0,\"y\":2.0,\"z\":3.0},[1.0,2.0,3.0,true]]",
158
- "instr": "toBe",
159
- "message": "",
160
- "location": "37:3"
161
- },
162
- {
163
- "order": 5,
164
- "type": "",
165
- "verdict": "ok",
166
- "left": "null",
167
- "right": "null",
168
- "instr": "toBe",
169
- "message": "",
170
- "location": "40:3"
171
- },
172
- {
173
- "order": 6,
174
- "type": "",
175
- "verdict": "ok",
176
- "left": "123",
177
- "right": "123",
178
- "instr": "toBe",
179
- "message": "",
180
- "location": "42:3"
181
- }
182
- ],
183
- "logs": [],
184
- "kind": "describe",
185
- "verdict": "ok"
186
- },
187
- {
188
- "file": "arbitrary.spec.ts",
189
- "order": 8,
190
- "time": {
191
- "start": 35763646.399282,
192
- "end": 35763646.892968
193
- },
194
- "description": "Should deserialize nested arbitrary arrays with element access",
195
- "depth": 0,
196
- "suites": [],
197
- "tests": [
198
- {
199
- "order": 0,
200
- "type": "",
201
- "verdict": "ok",
202
- "left": 2,
203
- "right": 2,
204
- "instr": "toBe",
205
- "message": "",
206
- "location": "49:3"
207
- },
208
- {
209
- "order": 1,
210
- "type": "",
211
- "verdict": "ok",
212
- "left": 2,
213
- "right": 2,
214
- "instr": "toBe",
215
- "message": "",
216
- "location": "54:3"
217
- },
218
- {
219
- "order": 2,
220
- "type": "",
221
- "verdict": "ok",
222
- "left": 2,
223
- "right": 2,
224
- "instr": "toBe",
225
- "message": "",
226
- "location": "55:3"
227
- },
228
- {
229
- "order": 3,
230
- "type": "",
231
- "verdict": "ok",
232
- "left": 1,
233
- "right": 1,
234
- "instr": "toBe",
235
- "message": "",
236
- "location": "57:3"
237
- },
238
- {
239
- "order": 4,
240
- "type": "",
241
- "verdict": "ok",
242
- "left": 2,
243
- "right": 2,
244
- "instr": "toBe",
245
- "message": "",
246
- "location": "58:3"
247
- },
248
- {
249
- "order": 5,
250
- "type": "",
251
- "verdict": "ok",
252
- "left": 3,
253
- "right": 3,
254
- "instr": "toBe",
255
- "message": "",
256
- "location": "60:3"
257
- },
258
- {
259
- "order": 6,
260
- "type": "",
261
- "verdict": "ok",
262
- "left": 4,
263
- "right": 4,
264
- "instr": "toBe",
265
- "message": "",
266
- "location": "61:3"
267
- },
268
- {
269
- "order": 7,
270
- "type": "",
271
- "verdict": "ok",
272
- "left": "[[1.0,2.0],[3.0,4.0]]",
273
- "right": "[[1.0,2.0],[3.0,4.0]]",
274
- "instr": "toBe",
275
- "message": "",
276
- "location": "63:3"
277
- }
278
- ],
279
- "logs": [],
280
- "kind": "describe",
281
- "verdict": "ok"
282
- },
283
- {
284
- "file": "arbitrary.spec.ts",
285
- "order": 9,
286
- "time": {
287
- "start": 35763646.939717,
288
- "end": 35763647.099396
289
- },
290
- "description": "Should deserialize nested arrays in mixed arbitrary arrays",
291
- "depth": 0,
292
- "suites": [],
293
- "tests": [
294
- {
295
- "order": 0,
296
- "type": "",
297
- "verdict": "ok",
298
- "left": 3,
299
- "right": 3,
300
- "instr": "toBe",
301
- "message": "",
302
- "location": "69:3"
303
- },
304
- {
305
- "order": 1,
306
- "type": "",
307
- "verdict": "ok",
308
- "left": "string",
309
- "right": "string",
310
- "instr": "toBe",
311
- "message": "",
312
- "location": "70:3"
313
- },
314
- {
315
- "order": 2,
316
- "type": "",
317
- "verdict": "ok",
318
- "left": "true",
319
- "right": "true",
320
- "instr": "toBe",
321
- "message": "",
322
- "location": "71:3"
323
- },
324
- {
325
- "order": 3,
326
- "type": "",
327
- "verdict": "ok",
328
- "left": 4,
329
- "right": 4,
330
- "instr": "toBe",
331
- "message": "",
332
- "location": "74:3"
333
- },
334
- {
335
- "order": 4,
336
- "type": "",
337
- "verdict": "ok",
338
- "left": 1,
339
- "right": 1,
340
- "instr": "toBe",
341
- "message": "",
342
- "location": "75:3"
343
- },
344
- {
345
- "order": 5,
346
- "type": "",
347
- "verdict": "ok",
348
- "left": 2,
349
- "right": 2,
350
- "instr": "toBe",
351
- "message": "",
352
- "location": "76:3"
353
- },
354
- {
355
- "order": 6,
356
- "type": "",
357
- "verdict": "ok",
358
- "left": 3,
359
- "right": 3,
360
- "instr": "toBe",
361
- "message": "",
362
- "location": "77:3"
363
- },
364
- {
365
- "order": 7,
366
- "type": "",
367
- "verdict": "ok",
368
- "left": 4,
369
- "right": 4,
370
- "instr": "toBe",
371
- "message": "",
372
- "location": "78:3"
373
- },
374
- {
375
- "order": 8,
376
- "type": "",
377
- "verdict": "ok",
378
- "left": "[\"string\",true,[1.0,2.0,3.0,4.0]]",
379
- "right": "[\"string\",true,[1.0,2.0,3.0,4.0]]",
380
- "instr": "toBe",
381
- "message": "",
382
- "location": "80:3"
383
- }
384
- ],
385
- "logs": [],
386
- "kind": "describe",
387
- "verdict": "ok"
388
- },
389
- {
390
- "file": "arbitrary.spec.ts",
391
- "order": 10,
392
- "time": {
393
- "start": 35763647.140435,
394
- "end": 35763647.417587
395
- },
396
- "description": "Should deserialize deeply nested arbitrary arrays",
397
- "depth": 0,
398
- "suites": [],
399
- "tests": [
400
- {
401
- "order": 0,
402
- "type": "",
403
- "verdict": "ok",
404
- "left": 2,
405
- "right": 2,
406
- "instr": "toBe",
407
- "message": "",
408
- "location": "87:3"
409
- },
410
- {
411
- "order": 1,
412
- "type": "",
413
- "verdict": "ok",
414
- "left": 1,
415
- "right": 1,
416
- "instr": "toBe",
417
- "message": "",
418
- "location": "90:3"
419
- },
420
- {
421
- "order": 2,
422
- "type": "",
423
- "verdict": "ok",
424
- "left": 2,
425
- "right": 2,
426
- "instr": "toBe",
427
- "message": "",
428
- "location": "93:3"
429
- },
430
- {
431
- "order": 3,
432
- "type": "",
433
- "verdict": "ok",
434
- "left": 1,
435
- "right": 1,
436
- "instr": "toBe",
437
- "message": "",
438
- "location": "94:3"
439
- },
440
- {
441
- "order": 4,
442
- "type": "",
443
- "verdict": "ok",
444
- "left": 2,
445
- "right": 2,
446
- "instr": "toBe",
447
- "message": "",
448
- "location": "95:3"
449
- },
450
- {
451
- "order": 5,
452
- "type": "",
453
- "verdict": "ok",
454
- "left": 1,
455
- "right": 1,
456
- "instr": "toBe",
457
- "message": "",
458
- "location": "98:3"
459
- },
460
- {
461
- "order": 6,
462
- "type": "",
463
- "verdict": "ok",
464
- "left": 2,
465
- "right": 2,
466
- "instr": "toBe",
467
- "message": "",
468
- "location": "100:3"
469
- },
470
- {
471
- "order": 7,
472
- "type": "",
473
- "verdict": "ok",
474
- "left": 3,
475
- "right": 3,
476
- "instr": "toBe",
477
- "message": "",
478
- "location": "101:3"
479
- },
480
- {
481
- "order": 8,
482
- "type": "",
483
- "verdict": "ok",
484
- "left": 4,
485
- "right": 4,
486
- "instr": "toBe",
487
- "message": "",
488
- "location": "102:3"
489
- },
490
- {
491
- "order": 9,
492
- "type": "",
493
- "verdict": "ok",
494
- "left": "[[[1.0,2.0]],[[3.0,4.0]]]",
495
- "right": "[[[1.0,2.0]],[[3.0,4.0]]]",
496
- "instr": "toBe",
497
- "message": "",
498
- "location": "104:3"
499
- }
500
- ],
501
- "logs": [],
502
- "kind": "describe",
503
- "verdict": "ok"
504
- },
505
- {
506
- "file": "arbitrary.spec.ts",
507
- "order": 8,
508
- "time": {
509
- "start": 35763647.458048,
510
- "end": 35763647.718782
511
- },
512
- "description": "Should deserialize nested arrays in JSON obj",
513
- "depth": 0,
514
- "suites": [],
515
- "tests": [
516
- {
517
- "order": 0,
518
- "type": "",
519
- "verdict": "ok",
520
- "left": 2,
521
- "right": 2,
522
- "instr": "toBe",
523
- "message": "",
524
- "location": "112:3"
525
- },
526
- {
527
- "order": 1,
528
- "type": "",
529
- "verdict": "ok",
530
- "left": 2,
531
- "right": 2,
532
- "instr": "toBe",
533
- "message": "",
534
- "location": "116:3"
535
- },
536
- {
537
- "order": 2,
538
- "type": "",
539
- "verdict": "ok",
540
- "left": 2,
541
- "right": 2,
542
- "instr": "toBe",
543
- "message": "",
544
- "location": "117:3"
545
- },
546
- {
547
- "order": 3,
548
- "type": "",
549
- "verdict": "ok",
550
- "left": 1,
551
- "right": 1,
552
- "instr": "toBe",
553
- "message": "",
554
- "location": "119:3"
555
- },
556
- {
557
- "order": 4,
558
- "type": "",
559
- "verdict": "ok",
560
- "left": 2,
561
- "right": 2,
562
- "instr": "toBe",
563
- "message": "",
564
- "location": "120:3"
565
- },
566
- {
567
- "order": 5,
568
- "type": "",
569
- "verdict": "ok",
570
- "left": 3,
571
- "right": 3,
572
- "instr": "toBe",
573
- "message": "",
574
- "location": "122:3"
575
- },
576
- {
577
- "order": 6,
578
- "type": "",
579
- "verdict": "ok",
580
- "left": 4,
581
- "right": 4,
582
- "instr": "toBe",
583
- "message": "",
584
- "location": "123:3"
585
- },
586
- {
587
- "order": 7,
588
- "type": "",
589
- "verdict": "ok",
590
- "left": "{\"data\":[[1.0,2.0],[3.0,4.0]]}",
591
- "right": "{\"data\":[[1.0,2.0],[3.0,4.0]]}",
592
- "instr": "toBe",
593
- "message": "",
594
- "location": "125:3"
595
- }
596
- ],
597
- "logs": [],
598
- "kind": "describe",
599
- "verdict": "ok"
600
- },
601
- {
602
- "file": "arbitrary.spec.ts",
603
- "order": 8,
604
- "time": {
605
- "start": 35763647.753882,
606
- "end": 35763648.052355
607
- },
608
- "description": "Should deserialize nested objects in arbitrary arrays",
609
- "depth": 0,
610
- "suites": [],
611
- "tests": [
612
- {
613
- "order": 0,
614
- "type": "",
615
- "verdict": "ok",
616
- "left": 2,
617
- "right": 2,
618
- "instr": "toBe",
619
- "message": "",
620
- "location": "132:3"
621
- },
622
- {
623
- "order": 1,
624
- "type": "",
625
- "verdict": "ok",
626
- "left": 2,
627
- "right": 2,
628
- "instr": "toBe",
629
- "message": "",
630
- "location": "135:3"
631
- },
632
- {
633
- "order": 2,
634
- "type": "",
635
- "verdict": "ok",
636
- "left": 1,
637
- "right": 1,
638
- "instr": "toBe",
639
- "message": "",
640
- "location": "136:3"
641
- },
642
- {
643
- "order": 3,
644
- "type": "",
645
- "verdict": "ok",
646
- "left": 2,
647
- "right": 2,
648
- "instr": "toBe",
649
- "message": "",
650
- "location": "137:3"
651
- },
652
- {
653
- "order": 4,
654
- "type": "",
655
- "verdict": "ok",
656
- "left": 2,
657
- "right": 2,
658
- "instr": "toBe",
659
- "message": "",
660
- "location": "140:3"
661
- },
662
- {
663
- "order": 5,
664
- "type": "",
665
- "verdict": "ok",
666
- "left": 3,
667
- "right": 3,
668
- "instr": "toBe",
669
- "message": "",
670
- "location": "141:3"
671
- },
672
- {
673
- "order": 6,
674
- "type": "",
675
- "verdict": "ok",
676
- "left": 4,
677
- "right": 4,
678
- "instr": "toBe",
679
- "message": "",
680
- "location": "142:3"
681
- },
682
- {
683
- "order": 7,
684
- "type": "",
685
- "verdict": "ok",
686
- "left": "[{\"a\":1.0,\"b\":2.0},{\"c\":3.0,\"d\":4.0}]",
687
- "right": "[{\"a\":1.0,\"b\":2.0},{\"c\":3.0,\"d\":4.0}]",
688
- "instr": "toBe",
689
- "message": "",
690
- "location": "144:3"
691
- }
692
- ],
693
- "logs": [],
694
- "kind": "describe",
695
- "verdict": "ok"
696
- },
697
- {
698
- "file": "arbitrary.spec.ts",
699
- "order": 6,
700
- "time": {
701
- "start": 35763648.092138,
702
- "end": 35763648.433299
703
- },
704
- "description": "Additional regression coverage - primitives and arrays",
705
- "depth": 0,
706
- "suites": [],
707
- "tests": [
708
- {
709
- "order": 0,
710
- "type": "",
711
- "verdict": "ok",
712
- "left": "\"regression\"",
713
- "right": "\"regression\"",
714
- "instr": "toBe",
715
- "message": "",
716
- "location": "148:3"
717
- },
718
- {
719
- "order": 1,
720
- "type": "",
721
- "verdict": "ok",
722
- "left": "-42",
723
- "right": "-42",
724
- "instr": "toBe",
725
- "message": "",
726
- "location": "149:3"
727
- },
728
- {
729
- "order": 2,
730
- "type": "",
731
- "verdict": "ok",
732
- "left": "false",
733
- "right": "false",
734
- "instr": "toBe",
735
- "message": "",
736
- "location": "150:3"
737
- },
738
- {
739
- "order": 3,
740
- "type": "",
741
- "verdict": "ok",
742
- "left": "3.5",
743
- "right": "3.5",
744
- "instr": "toBe",
745
- "message": "",
746
- "location": "151:3"
747
- },
748
- {
749
- "order": 4,
750
- "type": "",
751
- "verdict": "ok",
752
- "left": "[1,2,3,4]",
753
- "right": "[1,2,3,4]",
754
- "instr": "toBe",
755
- "message": "",
756
- "location": "152:3"
757
- },
758
- {
759
- "order": 5,
760
- "type": "",
761
- "verdict": "ok",
762
- "left": "[\"a\",\"b\",\"c\"]",
763
- "right": "[\"a\",\"b\",\"c\"]",
764
- "instr": "toBe",
765
- "message": "",
766
- "location": "153:3"
767
- }
768
- ],
769
- "logs": [],
770
- "kind": "describe",
771
- "verdict": "ok"
772
- },
773
- {
774
- "file": "arbitrary.spec.ts",
775
- "order": 4,
776
- "time": {
777
- "start": 35763648.475498,
778
- "end": 35763648.632953
779
- },
780
- "description": "Should support additional arbitrary object operations",
781
- "depth": 0,
782
- "suites": [],
783
- "tests": [
784
- {
785
- "order": 0,
786
- "type": "",
787
- "verdict": "ok",
788
- "left": "true",
789
- "right": "true",
790
- "instr": "toBe",
791
- "message": "",
792
- "location": "161:3"
793
- },
794
- {
795
- "order": 1,
796
- "type": "",
797
- "verdict": "ok",
798
- "left": "1",
799
- "right": "1",
800
- "instr": "toBe",
801
- "message": "",
802
- "location": "162:3"
803
- },
804
- {
805
- "order": 2,
806
- "type": "",
807
- "verdict": "ok",
808
- "left": "false",
809
- "right": "false",
810
- "instr": "toBe",
811
- "message": "",
812
- "location": "164:3"
813
- },
814
- {
815
- "order": 3,
816
- "type": "",
817
- "verdict": "ok",
818
- "left": "{\"b\":true,\"c\":\"str\"}",
819
- "right": "{\"b\":true,\"c\":\"str\"}",
820
- "instr": "toBe",
821
- "message": "",
822
- "location": "165:3"
823
- }
824
- ],
825
- "logs": [],
826
- "kind": "describe",
827
- "verdict": "ok"
828
- },
829
- {
830
- "file": "arbitrary.spec.ts",
831
- "order": 3,
832
- "time": {
833
- "start": 35763648.672344,
834
- "end": 35763649.18959
835
- },
836
- "description": "Should parse additional arbitrary values",
837
- "depth": 0,
838
- "suites": [],
839
- "tests": [
840
- {
841
- "order": 0,
842
- "type": "",
843
- "verdict": "ok",
844
- "left": "0",
845
- "right": "0",
846
- "instr": "toBe",
847
- "message": "",
848
- "location": "169:3"
849
- },
850
- {
851
- "order": 1,
852
- "type": "",
853
- "verdict": "ok",
854
- "left": "123.0",
855
- "right": "123.0",
856
- "instr": "toBe",
857
- "message": "",
858
- "location": "170:3"
859
- },
860
- {
861
- "order": 2,
862
- "type": "",
863
- "verdict": "ok",
864
- "left": "[1.0,2.0,3.0]",
865
- "right": "[1.0,2.0,3.0]",
866
- "instr": "toBe",
867
- "message": "",
868
- "location": "171:3"
869
- }
870
- ],
871
- "logs": [],
872
- "kind": "describe",
873
- "verdict": "ok"
874
- },
875
- {
876
- "file": "arbitrary.spec.ts",
877
- "order": 5,
878
- "time": {
879
- "start": 35763649.226849,
880
- "end": 35763649.500451
881
- },
882
- "description": "Extended regression coverage - nested and escaped payloads",
883
- "depth": 0,
884
- "suites": [],
885
- "tests": [
886
- {
887
- "order": 0,
888
- "type": "",
889
- "verdict": "ok",
890
- "left": "0",
891
- "right": "0",
892
- "instr": "toBe",
893
- "message": "",
894
- "location": "175:3"
895
- },
896
- {
897
- "order": 1,
898
- "type": "",
899
- "verdict": "ok",
900
- "left": "true",
901
- "right": "true",
902
- "instr": "toBe",
903
- "message": "",
904
- "location": "176:3"
905
- },
906
- {
907
- "order": 2,
908
- "type": "",
909
- "verdict": "ok",
910
- "left": "-0.125",
911
- "right": "-0.125",
912
- "instr": "toBe",
913
- "message": "",
914
- "location": "177:3"
915
- },
916
- {
917
- "order": 3,
918
- "type": "",
919
- "verdict": "ok",
920
- "left": "[[1],[2,3],[]]",
921
- "right": "[[1],[2,3],[]]",
922
- "instr": "toBe",
923
- "message": "",
924
- "location": "178:3"
925
- },
926
- {
927
- "order": 4,
928
- "type": "",
929
- "verdict": "ok",
930
- "left": "\"line\\nbreak\"",
931
- "right": "\"line\\nbreak\"",
932
- "instr": "toBe",
933
- "message": "",
934
- "location": "179:3"
935
- }
936
- ],
937
- "logs": [],
938
- "kind": "describe",
939
- "verdict": "ok"
940
- }
941
- ]
942
- }
943
- ]