diff options
| author | Matthew Sackman <matthew@lshift.net> | 2010-05-13 14:42:02 +0100 |
|---|---|---|
| committer | Matthew Sackman <matthew@lshift.net> | 2010-05-13 14:42:02 +0100 |
| commit | 5830bad0236626fe483c85a57823901774417ac3 (patch) | |
| tree | 64048ab8ec6f7caa706d4d1a8e47281a3ca74577 | |
| parent | 6bec44b9485bf7868e8e3f98b2192f274bf7f691 (diff) | |
| download | rabbitmq-server-git-5830bad0236626fe483c85a57823901774417ac3.tar.gz | |
Cosmetic, and move to 100% code coverage of bpqueue
| -rw-r--r-- | src/rabbit_tests.erl | 6 |
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( |
