summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_tests.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rabbit_tests.erl b/src/rabbit_tests.erl
index 9836a9883d..b9f6dfd6a9 100644
--- a/src/rabbit_tests.erl
+++ b/src/rabbit_tests.erl
@@ -259,11 +259,13 @@ test_bpqueue() ->
ok = bpqueue:foldl(fun (Prefix, Value, ok) -> {error, Prefix, Value} end,
ok, Q),
+ ok = bpqueue:foldr(fun (Prefix, Value, ok) -> {error, Prefix, Value} end,
+ ok, Q),
[] = bpqueue:to_list(Q),
- [{bar,3},{foo,2},{foo,1}] =
- bpqueue:foldr(fun(P,V,I) -> [{P,V}|I] end, [], Q2),
+ [{bar,3}, {foo,2}, {foo,1}] =
+ bpqueue:foldr(fun (P, V, I) -> [{P,V} | I] end, [], Q2),
F1 = fun (Qn) ->
bpqueue:map_fold_filter_l(