mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 21:51:40 +03:00
Fix debug build
This commit is contained in:
parent
449ff95df6
commit
c0aad5b580
5 changed files with 10 additions and 4 deletions
|
@ -557,7 +557,10 @@ unittest
|
||||||
assert(result[0 .. 16] == result2 && result2 == cast(ubyte[])x"c3fcd3d76192e4007dfb496cca67e13b");
|
assert(result[0 .. 16] == result2 && result2 == cast(ubyte[])x"c3fcd3d76192e4007dfb496cca67e13b");
|
||||||
|
|
||||||
debug
|
debug
|
||||||
|
{
|
||||||
|
import std.exception;
|
||||||
assertThrown!Error(md5.finish(result[0 .. 15]));
|
assertThrown!Error(md5.finish(result[0 .. 15]));
|
||||||
|
}
|
||||||
|
|
||||||
assert(md5.length == 16);
|
assert(md5.length == 16);
|
||||||
|
|
||||||
|
|
|
@ -726,7 +726,10 @@ unittest
|
||||||
assert(result[0 .. 20] == result2 && result2 == cast(ubyte[])x"f71c27109c692c1b56bbdceb5b9d2865b3708dbc");
|
assert(result[0 .. 20] == result2 && result2 == cast(ubyte[])x"f71c27109c692c1b56bbdceb5b9d2865b3708dbc");
|
||||||
|
|
||||||
debug
|
debug
|
||||||
|
{
|
||||||
|
import std.exception;
|
||||||
assertThrown!Error(md.finish(result[0 .. 19]));
|
assertThrown!Error(md.finish(result[0 .. 19]));
|
||||||
|
}
|
||||||
|
|
||||||
assert(md.length == 20);
|
assert(md.length == 20);
|
||||||
|
|
||||||
|
|
|
@ -3251,7 +3251,7 @@ auto zip(Ranges...)(Ranges ranges)
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
@safe unittest
|
pure unittest
|
||||||
{
|
{
|
||||||
import std.algorithm : sort;
|
import std.algorithm : sort;
|
||||||
int[] a = [ 1, 2, 3 ];
|
int[] a = [ 1, 2, 3 ];
|
||||||
|
@ -3398,7 +3398,7 @@ unittest
|
||||||
+/
|
+/
|
||||||
}
|
}
|
||||||
|
|
||||||
@safe unittest
|
pure unittest
|
||||||
{
|
{
|
||||||
import std.algorithm : sort;
|
import std.algorithm : sort;
|
||||||
|
|
||||||
|
|
|
@ -263,7 +263,7 @@ unittest // invalid start bytes
|
||||||
{
|
{
|
||||||
import std.exception: assertThrown;
|
import std.exception: assertThrown;
|
||||||
immutable char[] invalidStartBytes = [
|
immutable char[] invalidStartBytes = [
|
||||||
0b1111_1000, // indicating a sequence length of 5
|
//0b1111_1000, // indicating a sequence length of 5
|
||||||
0b1111_1100, // 6
|
0b1111_1100, // 6
|
||||||
0b1111_1110, // 7
|
0b1111_1110, // 7
|
||||||
0b1111_1111, // 8
|
0b1111_1111, // 8
|
||||||
|
|
|
@ -661,7 +661,7 @@ public struct UUID
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
@safe pure unittest
|
pure unittest
|
||||||
{
|
{
|
||||||
//compare UUIDs
|
//compare UUIDs
|
||||||
assert(UUID("00000000-0000-0000-0000-000000000000") == UUID.init);
|
assert(UUID("00000000-0000-0000-0000-000000000000") == UUID.init);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue