File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
test/clojure/test_clojure Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1616import java .util .List ;
1717import java .util .NoSuchElementException ;
1818import java .util .Queue ;
19- import java .util .concurrent . ConcurrentLinkedQueue ;
19+ import java .util .LinkedList ;
2020
2121public class TransformerIterator implements Iterator {
2222
@@ -169,7 +169,7 @@ public String toString() {
169169}
170170
171171private static class Many implements Buffer {
172- private final Queue vals = new ConcurrentLinkedQueue ();
172+ private final Queue vals = new LinkedList ();
173173
174174 public Many (Object o1 , Object o2 ) {
175175 vals .add (o1 );
Original file line number Diff line number Diff line change 347347 (is (= [" drib" " god" " hsif" " kravdraa" " tac" ]
348348 (->> [" cat" " dog" " fish" " bird" " aardvark" ]
349349 (eduction (map clojure.string/reverse))
350- (sort-by first))))))
350+ (sort-by first)))))
351+ (testing " expanding transducer with nils"
352+ (is (= '(1 2 3 nil 4 5 6 nil )
353+ (eduction cat [[1 2 3 nil ] [4 5 6 nil ]])))))
351354
352355(deftest test-eduction-completion
353356 (testing " eduction completes inner xformed reducing fn"
You can’t perform that action at this time.
0 commit comments