mirror of
https://github.com/dlang/phobos.git
synced 2025-05-01 23:50:31 +03:00
mismatch should be @safe
This commit is contained in:
parent
38c74788e3
commit
c7f75bacb0
1 changed files with 2 additions and 2 deletions
|
@ -8269,7 +8269,7 @@ mismatch(alias pred = "a == b", Range1, Range2)(Range1 r1, Range2 r2)
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
unittest
|
@safe unittest
|
||||||
{
|
{
|
||||||
int[] x = [ 1, 5, 2, 7, 4, 3 ];
|
int[] x = [ 1, 5, 2, 7, 4, 3 ];
|
||||||
double[] y = [ 1.0, 5, 2, 7.3, 4, 8 ];
|
double[] y = [ 1.0, 5, 2, 7.3, 4, 8 ];
|
||||||
|
@ -8278,7 +8278,7 @@ unittest
|
||||||
assert(m[1] == y[3 .. $]);
|
assert(m[1] == y[3 .. $]);
|
||||||
}
|
}
|
||||||
|
|
||||||
unittest
|
@safe unittest
|
||||||
{
|
{
|
||||||
debug(std_algorithm) scope(success)
|
debug(std_algorithm) scope(success)
|
||||||
writeln("unittest @", __FILE__, ":", __LINE__, " done.");
|
writeln("unittest @", __FILE__, ":", __LINE__, " done.");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue