std.regex.internal.tests: Fix a -dip1000 compilable issue

This commit is contained in:
carblue 2018-03-26 13:59:18 +02:00
parent 8069001212
commit 5fb1fe7639
2 changed files with 5 additions and 5 deletions

View file

@ -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));
}
}
}}