mirror of
https://github.com/dlang/phobos.git
synced 2025-05-01 23:50:31 +03:00
minPos should be @safe
This commit is contained in:
parent
a2b1174f58
commit
38c74788e3
1 changed files with 3 additions and 3 deletions
|
@ -8195,7 +8195,7 @@ Range minPos(alias pred = "a < b", Range)(Range range)
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
unittest
|
@safe unittest
|
||||||
{
|
{
|
||||||
int[] a = [ 2, 3, 4, 1, 2, 4, 1, 1, 2 ];
|
int[] a = [ 2, 3, 4, 1, 2, 4, 1, 1, 2 ];
|
||||||
// Minimum is 1 and first occurs in position 3
|
// Minimum is 1 and first occurs in position 3
|
||||||
|
@ -8204,7 +8204,7 @@ unittest
|
||||||
assert(minPos!("a > b")(a) == [ 4, 1, 2, 4, 1, 1, 2 ]);
|
assert(minPos!("a > b")(a) == [ 4, 1, 2, 4, 1, 1, 2 ]);
|
||||||
}
|
}
|
||||||
|
|
||||||
unittest
|
@safe unittest
|
||||||
{
|
{
|
||||||
debug(std_algorithm) scope(success)
|
debug(std_algorithm) scope(success)
|
||||||
writeln("unittest @", __FILE__, ":", __LINE__, " done.");
|
writeln("unittest @", __FILE__, ":", __LINE__, " done.");
|
||||||
|
@ -8231,7 +8231,7 @@ unittest
|
||||||
.equal([ 1, 2, 4, 1, 1, 2 ]));
|
.equal([ 1, 2, 4, 1, 1, 2 ]));
|
||||||
}
|
}
|
||||||
|
|
||||||
unittest
|
@safe unittest
|
||||||
{
|
{
|
||||||
//BUG 9299
|
//BUG 9299
|
||||||
debug(std_algorithm) scope(success)
|
debug(std_algorithm) scope(success)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue