[Issue 13171] New: std.algorithm.until(range, sentinel, OpenRight.no) doesn't propagate popping of sentinel to range
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Jul 20 14:38:11 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13171
Issue ID: 13171
Summary: std.algorithm.until(range, sentinel, OpenRight.no)
doesn't propagate popping of sentinel to range
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: Phobos
Assignee: nobody at puremagic.com
Reporter: nilsbossung at googlemail.com
import std.algorithm;
import std.range;
void main()
{
auto a = [1, 2, 3, 4];
assert(equal(refRange(&a).until(3, OpenRight.no), [1, 2, 3])); /* passes */
assert(a == [4]); /* fails, should pass */
}
Pull request is on the way.
--
More information about the Digitalmars-d-bugs
mailing list