Merge pull request #4571 from schveiguy/fixcycles3

Fix loop during unit tests between std.parallelism and std.range
This commit is contained in:
Dmitry Olshansky 2016-07-06 19:34:08 +02:00 committed by GitHub
commit 01f14f7141
2 changed files with 6 additions and 3 deletions

View file

@ -4561,3 +4561,9 @@ unittest
auto result = taskPool.amap!__genPair_12733(data);
}
unittest
{
// this test was in std.range, but caused cycles.
assert(__traits(compiles, { foreach (i; iota(0, 100UL).parallel) {} }));
}

View file

@ -5354,9 +5354,6 @@ unittest
unittest
{
import std.parallelism : parallel;
assert(__traits(compiles, { foreach (i; iota(0, 100UL).parallel) {} }));
assert(iota(1UL, 0UL).length == 0);
assert(iota(1UL, 0UL, 1).length == 0);
assert(iota(0, 1, 1).length == 1);