mirror of
https://github.com/dlang/phobos.git
synced 2025-05-04 09:00:22 +03:00
commit
a3289101b1
1 changed files with 7 additions and 0 deletions
|
@ -2718,6 +2718,7 @@ if (isInputRange!RoR && isInputRange!(ElementType!RoR))
|
|||
Result copy;
|
||||
copy._items = _items.save;
|
||||
copy._current = _current.save;
|
||||
copy._valid_current = _valid_current;
|
||||
return copy;
|
||||
}
|
||||
}
|
||||
|
@ -2748,6 +2749,12 @@ unittest
|
|||
|
||||
// bugzilla 8240
|
||||
assert(equal(joiner([inputRangeObject("")]), ""));
|
||||
|
||||
// issue 8792
|
||||
auto b = [[1], [2], [3]];
|
||||
auto jb = joiner(b);
|
||||
auto js = jb.save;
|
||||
assert(equal(jb, js));
|
||||
}
|
||||
|
||||
// uniq
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue