Skip to content

Commit

Permalink
Add ChunkedSeq to protocol
Browse files Browse the repository at this point in the history
Fixes Vincit#46
  • Loading branch information
transducer committed Mar 23, 2022
1 parent 0335a25 commit cf43487
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/venia/core.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
(arg->str [arg] (str "{" (arguments->str arg) "}"))
PersistentVector
(arg->str [arg] (sequential->str arg))
ChunkedSeq
(arg->str [arg] (sequential->str arg))
IndexedSeq
(arg->str [arg] (sequential->str arg))
LazySeq
Expand Down
3 changes: 3 additions & 0 deletions test/venia/core_test.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
(set)))))
;; List in cljs
(is (= "[1,2,3]" (v/arg->str '(1 2 3))))
;; ChunkedSeq in cljs
(is (= "[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39]"
(q/arg->str (seq (vec (range 40))))))
;; IndexedSeq in cljs
(is (= "[1,2,3]" (v/arg->str (seq [1 2 3]))))
;; LazySeq in cljs
Expand Down

0 comments on commit cf43487

Please sign in to comment.