#3153 - 'Fixing' the ByteStringSpec by not having it generate now illegal combinations of data for copyToArray
This commit is contained in:
parent
6072cf3569
commit
950d19a377
3 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue