Bug 10182 – std.bitmanip unit test has pointless/unused foreach loop

Status
RESOLVED
Resolution
FIXED
Severity
trivial
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-05-27T00:42:00Z
Last change time
2013-05-27T04:51:33Z
Assigned to
nobody
Creator
diggsey

Comments

Comment #0 by diggsey — 2013-05-27T00:42:40Z
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.
Comment #1 by diggsey — 2013-05-27T03:44:37Z