mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 22:50:38 +03:00
Merge pull request #4687 from wilzbach/std_algorithm_comparison
add unittest attributes to std.algorithm.comparison
This commit is contained in:
commit
bf3669f369
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.format : format;
|
||||
|
@ -400,7 +400,7 @@ unittest
|
|||
}
|
||||
|
||||
/// Using with void handlers:
|
||||
unittest
|
||||
@system unittest
|
||||
{
|
||||
import std.exception : assertThrown;
|
||||
|
||||
|
@ -421,7 +421,7 @@ unittest
|
|||
)();
|
||||
}
|
||||
|
||||
unittest
|
||||
@system unittest
|
||||
{
|
||||
import core.exception : SwitchError;
|
||||
import std.exception : assertThrown;
|
||||
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue