Browse files

Added unittest for Issue 9350.

  • Loading branch information...
1 parent e7ccc0d commit 28b61cf68d4b4238495322b5aca6dded48a4c14c @Poita Poita committed Jan 18, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 std/algorithm.d
View
2 std/algorithm.d
@@ -5485,6 +5485,8 @@ unittest
ReferenceForwardRange!int rfr = new ReferenceForwardRange!int([1, 2, 3, 2, 2, 3]);
assert(equal(findAdjacent(rfr), [2, 2, 3]));
+ // Issue 9350
+ assert(!repeat(1).findAdjacent().empty);
}
// findAmong

0 comments on commit 28b61cf

Please sign in to comment.