rust/src/libcoretest
Ulrik Sverdrup 35eb3e8b79 Correct iterator adaptor Chain
The iterator protocol specifies that the iteration ends with the return
value `None` from `.next()` (or `.next_back()`) and it is unspecified
what further calls return. The chain adaptor must account for this in
its DoubleEndedIterator implementation.

It uses three states:

- Both `a` and `b` are valid
- Only the Front iterator (`a`) is valid
- Only the Back iterator (`b`) is valid

The fourth state (neither iterator is valid) only occurs after Chain has
returned None once, so we don't need to store this state.

Fixes #26316
2015-08-25 19:07:24 +02:00
..
fmt Fix negate_unsigned feature gate check 2015-07-14 21:48:43 +03:00
hash Remove all unstable deprecated functionality 2015-08-12 14:55:17 -07:00
num Auto merge of #27871 - alexcrichton:stabilize-libcore, r=aturon 2015-08-22 09:59:07 +00:00
any.rs
atomic.rs core: Shuffle around float parsing 2015-08-17 19:35:52 -07:00
cell.rs Add map and filter_map associated functions to std::cell::Ref and RefMut 2015-05-29 08:39:07 +02:00
char.rs Add a test for char::to_lowercase mapping to more than one char. 2015-08-20 14:38:46 +02:00
clone.rs
cmp.rs Remove all unstable deprecated functionality 2015-08-12 14:55:17 -07:00
intrinsics.rs
iter.rs Correct iterator adaptor Chain 2015-08-25 19:07:24 +02:00
lib.rs Auto merge of #27684 - alexcrichton:remove-deprecated, r=aturon 2015-08-13 23:32:30 +00:00
mem.rs std: Remove #[old_orphan_check] from PartialEq 2015-03-31 13:39:14 -07:00
nonzero.rs
ops.rs
option.rs Fallout in tests and docs from feature renamings 2015-06-17 09:07:16 -07:00
ptr.rs Replace many uses of mem::transmute with more specific functions 2015-08-09 22:05:22 +02:00
result.rs libcore/Result - RFC#1119 Add an 'expect' method to Result 2015-06-15 12:00:16 +08:00
slice.rs O(1) count,nth,last for slice::Windows,Chunks(Mut) 2015-08-12 08:34:51 -07:00
str.rs Moved coretest::str tests into collectiontest::str 2015-04-05 18:52:58 +02:00
tuple.rs