mirror of
https://github.com/dlang/phobos.git
synced 2025-05-02 08:00:48 +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
|
@ -178,7 +178,7 @@ aa[std.regex.internal.ir]=-dip1000
|
||||||
aa[std.regex.internal.kickstart]=-dip1000
|
aa[std.regex.internal.kickstart]=-dip1000
|
||||||
aa[std.regex.internal.parser]=-dip1000
|
aa[std.regex.internal.parser]=-dip1000
|
||||||
aa[std.regex.internal.tests2]=-dip1000
|
aa[std.regex.internal.tests2]=-dip1000
|
||||||
aa[std.regex.internal.tests]=-dip25 # i.a. depends on https://github.com/dlang/phobos/pull/5915 ? and a fix for writeln
|
aa[std.regex.internal.tests]=-dip1000 # merged https://github.com/dlang/phobos/pull/6340; for -debug=std_regex_test (set nowhere in sources) still depends on a fix for writeln
|
||||||
aa[std.regex.internal.thompson]=-dip1000
|
aa[std.regex.internal.thompson]=-dip1000
|
||||||
|
|
||||||
aa[std.windows.charset]=-dip1000
|
aa[std.windows.charset]=-dip1000
|
||||||
|
|
|
@ -10,6 +10,8 @@ import std.conv, std.exception, std.meta, std.range,
|
||||||
|
|
||||||
import std.uni : Escapables; // characters that need escaping
|
import std.uni : Escapables; // characters that need escaping
|
||||||
|
|
||||||
|
debug(std_regex_test) import std.stdio;
|
||||||
|
|
||||||
@safe unittest
|
@safe unittest
|
||||||
{//sanity checks
|
{//sanity checks
|
||||||
regex("(a|b)*");
|
regex("(a|b)*");
|
||||||
|
@ -449,11 +451,9 @@ import std.uni : Escapables; // characters that need escaping
|
||||||
v ,": ", tvd.pattern));
|
v ,": ", tvd.pattern));
|
||||||
if (c == 'y')
|
if (c == 'y')
|
||||||
{
|
{
|
||||||
import std.stdio;
|
|
||||||
auto result = produceExpected(m, tvd.format);
|
auto result = produceExpected(m, tvd.format);
|
||||||
if (result != tvd.replace)
|
assert(result == tvd.replace, text("ctRegex mismatch pattern #", v,
|
||||||
writeln("ctRegex mismatch pattern #", v, ": ", tvd.pattern," expected: ",
|
": ", tvd.pattern," expected: ", tvd.replace, " vs ", result));
|
||||||
tvd.replace, " vs ", result);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue