Add test.stub. Fix #51

This commit is contained in:
2018-11-18 06:32:10 +01:00
parent 0a121d9d19
commit 7585bf59e7
6 changed files with 387 additions and 322 deletions

View File

@ -23,7 +23,7 @@ module tanya.algorithm.iteration;
import tanya.algorithm.comparison;
import tanya.algorithm.mutation;
import tanya.range;
version (unittest) import tanya.test.range;
version (unittest) import tanya.test.stub;
private struct Take(R, bool exactly)
{
@ -322,10 +322,9 @@ if (isInputRange!R)
// length is unknown when taking from a range without length
@nogc nothrow pure @safe unittest
{
@Empty
static struct R
{
mixin InputRange;
mixin InputRangeStub;
}
auto actual = take(R(), 100);