-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use arrays instead of vectors in tests #22623
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
@bors: r+ 2e91dc0 |
Needs rebase. |
Rebased and removed some more |
@@ -480,7 +480,7 @@ impl<T: Ord> BinaryHeap<T> { | |||
/// heap.push(3); | |||
/// | |||
/// let vec = heap.into_sorted_vec(); | |||
/// assert_eq!(vec, vec![1, 2, 3, 4, 5, 6, 7]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How will this work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, it works. Never mind :)
It didn't pass local make check, I've fixed the broken test. |
Tests often use `vec![1, 2, 3]` instead of shorter and faster `[1, 2, 3]`. This patch removes a lot of unnecessary `vec!`s. Hopefully, the tests will compile and run a bit faster.
⌛ Testing commit c11807d with merge 0e5d8b8... |
💔 Test failed - auto-linux-64-x-android-t |
Tests often use
vec![1, 2, 3]
instead of shorter and faster[1, 2, 3]
.This patch removes a lot of unnecessary
vec!
s. Hopefully, the tests will compile and run a bit faster.