Bug 5914 – std.range.ElementType has duplicated unittest, ElementEncodingType is missing one

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-04-30T14:06:00Z
Last change time
2011-05-24T18:52:26Z
Assigned to
nobody
Creator
andrej.mitrovich

Comments

Comment #0 by andrej.mitrovich — 2011-04-30T14:06:27Z
v2.052, std.range: The ElementType unittest at lines 626..637 is the same unittest as lines 654..665. The latter one should be replaced with an ElementEncodingType unittest such as: unittest { string a = "foo"; wstring b = "foo"; dstring c = "foo"; static assert(is(ElementEncodingType!(typeof(a)) : char)); static assert(is(ElementEncodingType!(typeof(b)) : wchar)); static assert(is(ElementEncodingType!(typeof(c)) : dchar)); }
Comment #1 by andrej.mitrovich — 2011-05-24T11:18:05Z
Looks like this was fixed on github, but no mention by who. Oh well..