Skip to content

Commit

Permalink
Fix deque tests
Browse files Browse the repository at this point in the history
  • Loading branch information
emberian authored and thestinger committed Jun 27, 2013
1 parent 9f5f609 commit ab428b6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/libextra/deque.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ mod tests {
use core::cmp::Eq;
use core::kinds::Copy;
use core::vec::capacity;
use core;

#[test]
fn test_simple() {
Expand Down Expand Up @@ -463,12 +464,12 @@ mod tests {
#[test]
fn test_iter() {
let mut d = Deque::new();
for std::int::range(0,5) |i| {
for core::int::range(0,5) |i| {
d.add_back(i);
}
assert_eq!(d.iter().collect::<~[&int]>(), ~[&0,&1,&2,&3,&4]);

for std::int::range(6,9) |i| {
for core::int::range(6,9) |i| {
d.add_front(i);
}
assert_eq!(d.iter().collect::<~[&int]>(), ~[&8,&7,&6,&0,&1,&2,&3,&4]);
Expand All @@ -477,12 +478,12 @@ mod tests {
#[test]
fn test_rev_iter() {
let mut d = Deque::new();
for std::int::range(0,5) |i| {
for core::int::range(0,5) |i| {
d.add_back(i);
}
assert_eq!(d.rev_iter().collect::<~[&int]>(), ~[&4,&3,&2,&1,&0]);

for std::int::range(6,9) |i| {
for core::int::range(6,9) |i| {
d.add_front(i);
}
assert_eq!(d.rev_iter().collect::<~[&int]>(), ~[&4,&3,&2,&1,&0,&6,&7,&8]);
Expand Down

6 comments on commit ab428b6

@thestinger
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+ p=10

@bors
Copy link
Contributor

@bors bors commented on ab428b6 Jun 27, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from thestinger
at ab428b6

@bors
Copy link
Contributor

@bors bors commented on ab428b6 Jun 27, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging mozilla/rust/rollup = ab428b6 into auto

@bors
Copy link
Contributor

@bors bors commented on ab428b6 Jun 27, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mozilla/rust/rollup = ab428b6 merged ok, testing candidate = f1e09d6

@bors
Copy link
Contributor

@bors bors commented on ab428b6 Jun 27, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = f1e09d6

Please sign in to comment.