mirror of
https://github.com/dlang/phobos.git
synced 2025-05-10 14:08:32 +03:00
add unittest attributes to std.algorithm.comparison
This commit is contained in:
parent
6db08d3dad
commit
bd98ca10d7
1 changed files with 4 additions and 4 deletions
|
@ -369,7 +369,7 @@ auto castSwitch(choices...)(Object switchObject)
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
unittest
|
@system unittest
|
||||||
{
|
{
|
||||||
import std.algorithm.iteration : map;
|
import std.algorithm.iteration : map;
|
||||||
import std.format : format;
|
import std.format : format;
|
||||||
|
@ -400,7 +400,7 @@ unittest
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Using with void handlers:
|
/// Using with void handlers:
|
||||||
unittest
|
@system unittest
|
||||||
{
|
{
|
||||||
import std.exception : assertThrown;
|
import std.exception : assertThrown;
|
||||||
|
|
||||||
|
@ -421,7 +421,7 @@ unittest
|
||||||
)();
|
)();
|
||||||
}
|
}
|
||||||
|
|
||||||
unittest
|
@system unittest
|
||||||
{
|
{
|
||||||
import core.exception : SwitchError;
|
import core.exception : SwitchError;
|
||||||
import std.exception : assertThrown;
|
import std.exception : assertThrown;
|
||||||
|
@ -1629,7 +1629,7 @@ auto predSwitch(alias pred = "a == b", T, R ...)(T switchExpression, lazy R choi
|
||||||
assertThrown!Exception(factorial(-9));
|
assertThrown!Exception(factorial(-9));
|
||||||
}
|
}
|
||||||
|
|
||||||
unittest
|
@system unittest
|
||||||
{
|
{
|
||||||
import core.exception : SwitchError;
|
import core.exception : SwitchError;
|
||||||
import std.exception : assertThrown;
|
import std.exception : assertThrown;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue