mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 06:30:28 +03:00
Fix deprecations
This commit is contained in:
parent
16431f11c1
commit
16b9188b4a
3 changed files with 11 additions and 4 deletions
|
@ -637,7 +637,7 @@ if (isInputRange!Range && !isInfinite!Range &&
|
|||
assert(count("ababab", "abab") == 1);
|
||||
assert(count("ababab", "abx") == 0);
|
||||
// fuzzy count range in range
|
||||
assert(count!((a, b) => std.uni.toLower(a) == std.uni.toLower(b))("AbcAdFaBf", "ab") == 2);
|
||||
assert(count!((a, b) => toLower(a) == toLower(b))("AbcAdFaBf", "ab") == 2);
|
||||
// count predicate in range
|
||||
assert(count!("a > 1")(a) == 8);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue