mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 06:30:28 +03:00
Replaced version (unittest) with version (StdUnittest) to avoid unnecessary overhead when compiling with -unittest
This commit is contained in:
parent
e373b4e774
commit
bb62aaca3d
44 changed files with 200 additions and 202 deletions
|
@ -642,7 +642,7 @@ if (isRandomAccessRange!Range && hasLength!Range && hasSlicing!Range && hasAssig
|
|||
for (;;)
|
||||
{
|
||||
// Loop invariant
|
||||
version (unittest)
|
||||
version (StdUnittest)
|
||||
{
|
||||
// this used to import std.algorithm.all, but we want to save
|
||||
// imports when unittests are enabled if possible.
|
||||
|
@ -4082,7 +4082,7 @@ if (isRandomAccessRange!Range && hasLength!Range &&
|
|||
else static if (k == 5)
|
||||
{
|
||||
// Credit: Teppo Niinimäki
|
||||
version (unittest) scope(success)
|
||||
version (StdUnittest) scope(success)
|
||||
{
|
||||
assert(!lt(r[c], r[a]), "less than check failed");
|
||||
assert(!lt(r[c], r[b]), "less than check failed");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue