Permalink
Browse files

add cmap pathological case to examplars

  • Loading branch information...
swannodette committed Dec 22, 2015
1 parent ebc8f7e commit ad9bde701b1eb1fe920b1172254aae8d95fb7517
@@ -399,3 +399,9 @@ See https://github.com/cognitect/transit-clj/blob/master/test/exemplar.clj
[NaN Infinity -Infinity]
## cmap pathological case discovered in transit-js and transit-cljs
* Files: cmap_pathological.edn cmap_pathological.json cmap_pathological.verbose.json cmap_pathological.mp
* Value (EDN)
[{:any-value {["this vector makes this a cmap"] "any value", "any string" :victim}} {:victim :any-other-value}]
@@ -0,0 +1 @@
[{:any-value {["this vector makes this a cmap"] "any value", "any string" :victim}} {:victim :any-other-value}]
@@ -0,0 +1 @@
[["^ ","~:any-value",["~#cmap",[["this vector makes this a cmap"],"any value","any string","~:victim"]]],["^ ","^2","~:any-other-value"]]
@@ -0,0 +1 @@
���~:any-value��~#cmap���this vector makes this a cmap�any value�any string�~:victim��^2�~:any-other-value
@@ -0,0 +1 @@
[{"~:any-value":{"~#cmap":[["this vector makes this a cmap"],"any value","any string","~:victim"]}},{"~:victim":"~:any-other-value"}]
View
@@ -307,7 +307,14 @@ marshal them to files for edn, json, json-verbose, and msgpack."
"Vector with special numbers"
[java.lang.Double/NaN
java.lang.Double/POSITIVE_INFINITY
java.lang.Double/NEGATIVE_INFINITY])))
java.lang.Double/NEGATIVE_INFINITY])
(write-exemplar
dir
"cmap_pathological"
"cmap pathological case discovered in transit-js and transit-cljs"
[{:any-value {["this vector makes this a cmap"] "any value" "any string" :victim}}
{:victim :any-other-value}])))
(defn -main [& args]
(write-exemplars (or (first args) "./simple-examples")))

0 comments on commit ad9bde7

Please sign in to comment.