diff --git a/src/libstd/trie.rs b/src/libstd/trie.rs index 50552fd75478..f4597f4b08e9 100644 --- a/src/libstd/trie.rs +++ b/src/libstd/trie.rs @@ -462,7 +462,7 @@ mod tests { m.insert(x, x / 2); } - let mut n = uint::max_value - 9999; + let mut n = uint::max_value - 10000; for m.each |k, v| { if n == uint::max_value - 5000 { break } assert!(n < uint::max_value - 5000); @@ -499,7 +499,7 @@ mod tests { m.insert(x, x / 2); } - let mut n = uint::max_value; + let mut n = uint::max_value - 1; for m.each_reverse |k, v| { if n == uint::max_value - 5000 { break } assert!(n > uint::max_value - 5000);