Skip to content

Commit bd98ca1

Browse files
committed
add unittest attributes to std.algorithm.comparison
1 parent 6db08d3 commit bd98ca1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

std/algorithm/comparison.d

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ auto castSwitch(choices...)(Object switchObject)
369369
}
370370

371371
///
372-
unittest
372+
@system unittest
373373
{
374374
import std.algorithm.iteration : map;
375375
import std.format : format;
@@ -400,7 +400,7 @@ unittest
400400
}
401401

402402
/// Using with void handlers:
403-
unittest
403+
@system unittest
404404
{
405405
import std.exception : assertThrown;
406406

@@ -421,7 +421,7 @@ unittest
421421
)();
422422
}
423423

424-
unittest
424+
@system unittest
425425
{
426426
import core.exception : SwitchError;
427427
import std.exception : assertThrown;
@@ -1629,7 +1629,7 @@ auto predSwitch(alias pred = "a == b", T, R ...)(T switchExpression, lazy R choi
16291629
assertThrown!Exception(factorial(-9));
16301630
}
16311631

1632-
unittest
1632+
@system unittest
16331633
{
16341634
import core.exception : SwitchError;
16351635
import std.exception : assertThrown;

0 commit comments

Comments
 (0)