Bug 3242 – splitter does not handle input range made of a unique separator correctly

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2009-08-10T08:21:00Z
Last change time
2015-06-09T05:15:08Z
Assigned to
andrei
Creator
baptiste.lepilleur

Comments

Comment #0 by baptiste.lepilleur — 2009-08-10T08:21:37Z
Notes: I found this while porting the splitter range algo to C++. Notes that I don't know D, so I may have missed something. Below is an additional unit test that fails when porting the algorithm to C++: unittest { auto s6 = ","; auto sp6 = splitter(s6, ','); assert(equal(sp6, ["", ""][])); }
Comment #1 by andrei — 2009-08-10T08:24:22Z
Thanks, will look into it.