Skip to content

Commit bf3669f

Browse files
authored
Merge pull request #4687 from wilzbach/std_algorithm_comparison
add unittest attributes to std.algorithm.comparison
2 parents 557b744 + bd98ca1 commit bf3669f

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;
@@ -1635,7 +1635,7 @@ auto predSwitch(alias pred = "a == b", T, R ...)(T switchExpression, lazy R choi
16351635
assertThrown!Exception(factorial(-9));
16361636
}
16371637

1638-
unittest
1638+
@system unittest
16391639
{
16401640
import core.exception : SwitchError;
16411641
import std.exception : assertThrown;

0 commit comments

Comments
 (0)