Merge branch 'master' into feature/exchange_lifetime

This commit is contained in:
Tristan B. Velloza Kildaire 2023-09-26 14:59:00 +02:00
commit 506a9bb554
1 changed files with 17 additions and 0 deletions

View File

@ -121,6 +121,23 @@ unittest
}
unittest
{
version(LittleEndian)
{
ushort i = 1;
writeln("Pre-order: ", i);
ushort ordered = order(i, Order.BE);
writeln("Post-order: ", ordered);
assert(ordered == 256);
}
else version(BigEndian)
{
// TODO: Add this AND CI tests for it
}
}
/**
* Checks if the given value is present in
* the given array