Skip to content

Commit

Permalink
niknaks.bits
Browse files Browse the repository at this point in the history
- Fixed unittest
  • Loading branch information
deavmi committed Oct 1, 2023
1 parent 3505655 commit 88031e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/niknaks/bits.d
Original file line number Diff line number Diff line change
Expand Up @@ -274,12 +274,12 @@ unittest
{
ubyte[] bytes = [1];
ushort to = bytesToIntegral!(ushort)(bytes);
assert(to == 0);
assert(to == ushort.init);
}
else version(BigEndian)
{
ubyte[] bytes = [1];
ushort to = bytesToIntegral!(ushort)(bytes);
assert(to == 0);
assert(to == ushort.init);
}
}

0 comments on commit 88031e6

Please sign in to comment.