mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 13:40:20 +03:00
std.regex.internal.tests: Fix a -dip1000 compilable issue
This commit is contained in:
parent
8069001212
commit
5fb1fe7639
2 changed files with 5 additions and 5 deletions
|
@ -10,6 +10,8 @@ import std.conv, std.exception, std.meta, std.range,
|
|||
|
||||
import std.uni : Escapables; // characters that need escaping
|
||||
|
||||
debug(std_regex_test) import std.stdio;
|
||||
|
||||
@safe unittest
|
||||
{//sanity checks
|
||||
regex("(a|b)*");
|
||||
|
@ -449,11 +451,9 @@ import std.uni : Escapables; // characters that need escaping
|
|||
v ,": ", tvd.pattern));
|
||||
if (c == 'y')
|
||||
{
|
||||
import std.stdio;
|
||||
auto result = produceExpected(m, tvd.format);
|
||||
if (result != tvd.replace)
|
||||
writeln("ctRegex mismatch pattern #", v, ": ", tvd.pattern," expected: ",
|
||||
tvd.replace, " vs ", result);
|
||||
assert(result == tvd.replace, text("ctRegex mismatch pattern #", v,
|
||||
": ", tvd.pattern," expected: ", tvd.replace, " vs ", result));
|
||||
}
|
||||
}
|
||||
}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue