diff options
| author | Matthew Sackman <matthew@lshift.net> | 2010-05-13 13:45:38 +0100 |
|---|---|---|
| committer | Matthew Sackman <matthew@lshift.net> | 2010-05-13 13:45:38 +0100 |
| commit | 76ed373cea0a6b1b53e49e8abcb483061393c738 (patch) | |
| tree | c2de8c2096c471ff6f70640dcef5a68db0f1118b /src | |
| parent | e1ea9ab049f0691e734fc9bfa8aa3f6eed032114 (diff) | |
| download | rabbitmq-server-git-76ed373cea0a6b1b53e49e8abcb483061393c738.tar.gz | |
Added a couple more bpqueue tests
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_tests.erl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rabbit_tests.erl b/src/rabbit_tests.erl index 9e45b7584b..217b2809f8 100644 --- a/src/rabbit_tests.erl +++ b/src/rabbit_tests.erl @@ -351,6 +351,12 @@ test_bpqueue() -> {[{foo,[1,2,2,-3,-4]}, {bar,[5]}, {foo,[5,6,7]}], 2} = Queue_to_list(bpqueue:map_fold_filter_l( FF1([bar]), FF2(foo, [5]), 0, BPQ)), + {[{bar,[-1,-2,-2,3,4,5,-5,-6,-7]}], 6} = + Queue_to_list(bpqueue:map_fold_filter_l( + FF1([foo]), FF2(bar, []), 0, BPQ)), + {[{foo,[1,2,2,-3,-4,-5,5,6,7]}], 3} = + Queue_to_list(bpqueue:map_fold_filter_l( + FF1([bar]), FF2(foo, []), 0, BPQ)), %% edge cases {[{foo,[-1,-2,-2]}, {bar,[3,4,5]}, {foo,[5,6,7]}], 3} = |
