Skip to content

Commit

Permalink
Merge pull request #4289 from ZombineDev/patch-4
Browse files Browse the repository at this point in the history
Use iotaSlice instead of iota in one more place
  • Loading branch information
dnadlinger committed May 8, 2016
2 parents e280cb6 + 9e2268c commit b8217a3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions std/experimental/ndslice/iteration.d
Original file line number Diff line number Diff line change
Expand Up @@ -1213,10 +1213,8 @@ body
///
@safe @nogc pure nothrow unittest
{
import std.experimental.ndslice.slice;
import std.range: iota, retro;
assert((5 * 3 * 6 * 7).iota
.sliced(5, 3, 6, 7)
import std.experimental.ndslice.selection: iotaSlice;
assert(iotaSlice(5, 3, 6, 7)
.dropToHypercube
.shape == cast(size_t[4])[3, 3, 3, 3]);
}

0 comments on commit b8217a3

Please sign in to comment.