Showing with 4 additions and 4 deletions.
  1. +4 −4 std/algorithm/comparison.d
8 changes: 4 additions & 4 deletions std/algorithm/comparison.d
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ auto castSwitch(choices...)(Object switchObject)
}

///
unittest
@system unittest
{
import std.algorithm.iteration : map;
import std.format : format;
Expand Down Expand Up @@ -400,7 +400,7 @@ unittest
}

/// Using with void handlers:
unittest
@system unittest
{
import std.exception : assertThrown;

Expand All @@ -421,7 +421,7 @@ unittest
)();
}

unittest
@system unittest
{
import core.exception : SwitchError;
import std.exception : assertThrown;
Expand Down Expand Up @@ -1635,7 +1635,7 @@ auto predSwitch(alias pred = "a == b", T, R ...)(T switchExpression, lazy R choi
assertThrown!Exception(factorial(-9));
}

unittest
@system unittest
{
import core.exception : SwitchError;
import std.exception : assertThrown;
Expand Down