#3153 - 'Fixing' the ByteStringSpec by not having it generate now illegal combinations of data for copyToArray

This commit is contained in:
Viktor Klang 2013-03-14 16:48:23 +01:00
parent 6072cf3569
commit 950d19a377
3 changed files with 3 additions and 3 deletions

View file

@ -39,7 +39,7 @@ class ByteStringSpec extends WordSpec with MustMatchers with Checkers {
implicit val arbitraryByteStringSlice: Arbitrary[ByteStringSlice] = Arbitrary {
for {
xs arbitraryByteString.arbitrary
from choose(0, xs.length)
from choose(0, xs.length - 1)
until choose(from, xs.length)
} yield (xs, from, until)
}