mirror of
https://github.com/dlang/phobos.git
synced 2025-05-06 02:45:12 +03:00
uniq should be @safe
This commit is contained in:
parent
b772034db2
commit
63659e9655
1 changed files with 2 additions and 2 deletions
|
@ -4259,7 +4259,7 @@ if (isInputRange!Range && is(typeof(binaryFun!pred(r.front, r.front)) == bool))
|
|||
}
|
||||
|
||||
///
|
||||
unittest
|
||||
@safe unittest
|
||||
{
|
||||
int[] arr = [ 1, 2, 2, 2, 2, 3, 4, 4, 4, 5 ];
|
||||
assert(equal(uniq(arr), [ 1, 2, 3, 4, 5 ][]));
|
||||
|
@ -4322,7 +4322,7 @@ private struct UniqResult(alias pred, Range)
|
|||
}
|
||||
}
|
||||
|
||||
unittest
|
||||
@safe unittest
|
||||
{
|
||||
debug(std_algorithm) scope(success)
|
||||
writeln("unittest @", __FILE__, ":", __LINE__, " done.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue