[Issue 10182] New: std.bitmanip unit test has pointless/unused foreach loop

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon May 27 00:42:41 PDT 2013


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

           Summary: std.bitmanip unit test has pointless/unused foreach
                    loop
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: diggsey at googlemail.com


--- Comment #0 from Diggory <diggsey at googlemail.com> 2013-05-27 00:42:40 PDT ---
Extremely minor issue but w/e

std.bitmanip contains the code:

unittest {
    foreach(endianness; TypeTuple!(Endian.bigEndian, Endian.littleEndian))
    {
       ... // Unit test code
    }
}

But then makes no reference to "endianness" in the actual code. The loop should
either be removed or the code updated to test both endiannesses if that's
possible.

-- 
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