mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 14:10:30 +03:00
Fix loop during unit tests between std.parallelism and std.range
This commit is contained in:
parent
c33f3862b7
commit
612444ea67
2 changed files with 6 additions and 3 deletions
|
@ -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) {} }));
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue