Commits

Anonymous committed 536fc46

cover other paths through reduce_plist_sum

  • Participants
  • Parent commits 93c1559

Comments (0)

Files changed (1)

File src/riak_mapreduce.erl

 reduce_plist_sum_test() ->
     PLs = [[{a, 1}], [{a, 2}],
            [{b, 1}], [{b, 4}]],
-    [{a,3},{b,5}] = reduce_plist_sum(PLs, test).
+    [{a,3},{b,5}] = reduce_plist_sum(PLs, test),
+    [{a,3},{b,5}] = reduce_plist_sum(lists:flatten(PLs), test),
+    [] = reduce_plist_sum([], test).
 
-
-