Skip to content

Commit

Permalink
Added unit test for the overlapping replaceInPlace() branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
dnadlinger committed Aug 2, 2011
1 parent 7c9fb77 commit 27ed4eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions std/array.d
Expand Up @@ -1672,6 +1672,8 @@ unittest
assert(a == [1, 2, 3, 4, 5]);
replaceInPlace(a, 1u, 2u, cast(int[])[]);
assert(a == [1, 3, 4, 5]);
replaceInPlace(a, 1u, 3u, a[2 .. 4]);
assert(a == [1, 4, 5, 5]);
}

unittest
Expand Down

0 comments on commit 27ed4eb

Please sign in to comment.