Permalink
Browse files

comment in test for next cleanup round.

  • Loading branch information...
1 parent 14b79f4 commit c11dcb410985dde00c63e6301ec4439a9fda59e6 Bradford Cross committed Feb 18, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 test/cascading/clojure/api_test.clj
@@ -106,6 +106,7 @@
(let [a (ClojureAggregator. (c/fields "sum") (c/fn-spec #'sum))]
(is (= [[6]] (t/invoke-aggregator a [[1] [2] [3]])))))
+;;TODO: notice Buffer exects a fn that takes an iterator and returns a seq of tuples. if we want to return only a single tuple, then we need to wrap the tuple in a seq.
(deftest test-clojure-buffer
(let [a (ClojureBuffer. (c/fields "sum") (c/fn-spec #'buff))]
(is (= [[2][3][4]] (t/invoke-buffer a [[1] [2] [3]])))))

0 comments on commit c11dcb4

Please sign in to comment.