[Issue 5914] New: std.range.ElementType has duplicated unittest, ElementEncodingType is missing one

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Apr 30 14:10:17 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5914

           Summary: std.range.ElementType has duplicated unittest,
                    ElementEncodingType is missing one
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: andrej.mitrovich at gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2011-04-30 14:06:27 PDT ---
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));  
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list