mirror of
https://github.com/dlang/phobos.git
synced 2025-05-09 21:11:57 +03:00
Remove all uses of std.metastrings.Format.
This commit is contained in:
parent
895550649f
commit
2735d30f4e
7 changed files with 17 additions and 19 deletions
18
std/range.d
18
std/range.d
|
@ -3162,8 +3162,6 @@ unittest
|
|||
|
||||
unittest
|
||||
{
|
||||
import std.metastrings;
|
||||
|
||||
string genInput()
|
||||
{
|
||||
return "@property bool empty() { return _arr.empty; }" ~
|
||||
|
@ -3241,21 +3239,21 @@ unittest
|
|||
//`InitStruct([1, 2, 3])`,
|
||||
`TakeNoneStruct([1, 2, 3])`))
|
||||
{
|
||||
mixin(Format!("enum a = takeNone(%s).empty;", range));
|
||||
mixin(format("enum a = takeNone(%s).empty;", range));
|
||||
assert(a, typeof(range).stringof);
|
||||
mixin(Format!("assert(takeNone(%s).empty);", range));
|
||||
mixin(Format!("static assert(is(typeof(%s) == typeof(takeNone(%s))), typeof(%s).stringof);",
|
||||
range, range, range));
|
||||
mixin(format("assert(takeNone(%s).empty);", range));
|
||||
mixin(format("static assert(is(typeof(%s) == typeof(takeNone(%s))), typeof(%s).stringof);",
|
||||
range, range, range));
|
||||
}
|
||||
|
||||
foreach(range; TypeTuple!(`NormalStruct([1, 2, 3])`,
|
||||
`InitStruct([1, 2, 3])`))
|
||||
{
|
||||
mixin(Format!("enum a = takeNone(%s).empty;", range));
|
||||
mixin(format("enum a = takeNone(%s).empty;", range));
|
||||
assert(a, typeof(range).stringof);
|
||||
mixin(Format!("assert(takeNone(%s).empty);", range));
|
||||
mixin(Format!("static assert(is(typeof(takeExactly(%s, 0)) == typeof(takeNone(%s))), typeof(%s).stringof);",
|
||||
range, range, range));
|
||||
mixin(format("assert(takeNone(%s).empty);", range));
|
||||
mixin(format("static assert(is(typeof(takeExactly(%s, 0)) == typeof(takeNone(%s))), typeof(%s).stringof);",
|
||||
range, range, range));
|
||||
}
|
||||
|
||||
//Don't work in CTFE.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue