Skip to content

Commit

Permalink
Use iotaSlice instead of iota in one more place
Browse files Browse the repository at this point in the history
  • Loading branch information
PetarKirov committed May 8, 2016
1 parent e280cb6 commit 9e2268c
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 9e2268c

Please sign in to comment.