← Back to index
|
Original Bugzilla link
Bug 6041 – std.algorithm.remove wrong code in assert
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-05-20T18:28:00Z
Last change time
2011-07-30T20:49:15Z
Assigned to
nobody
Creator
andrej.mitrovich
Comments
Comment #0
by andrej.mitrovich — 2011-05-20T18:28:44Z
int[] a = [ 1, 2, 3, 2, 3, 4, 5, 2, 5, 6 ]; assert(a[0 .. $ - remove!("a == 2")(a).length] == [ 1, 3, 3, 4, 5, 5, 6 ]); Last line should be: assert(a[0 .. remove!("a == 2")(a).length] == [ 1, 3, 3, 4, 5, 5, 6 ]);
Comment #1
by issues.dlang — 2011-07-30T20:49:15Z
This appears to have been fixed.