Fix loop during unit tests between std.parallelism and std.range

This commit is contained in:
Steven Schveighoffer 2016-07-06 07:50:45 -04:00
parent c33f3862b7
commit 612444ea67
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);