Skip to content

Commit 2323f91

Browse files
committed
Create property test for Array.blit
1 parent 33c4b27 commit 2323f91

File tree

1 file changed

+1
-1
lines changed
  • src/fsharp/FSharp.Core.Unittests/FSharp.Core/Microsoft.FSharp.Collections

1 file changed

+1
-1
lines changed

src/fsharp/FSharp.Core.Unittests/FSharp.Core/Microsoft.FSharp.Collections/ArrayProperties.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ let blitWorksLikeCopy<'a when 'a : comparison> (source : 'a [], sourceIndex, tar
2525
let target2 = Array.copy target
2626
let a = runAndCheckIfAnyError (fun () -> Array.blit source sourceIndex target1 targetIndex count)
2727
let b = runAndCheckIfAnyError (fun () -> Array.Copy(source, sourceIndex, target2, targetIndex, count))
28-
a = b
28+
a = b && target1 = target2
2929

3030
[<Test>]
3131
let ``Array.blit works like Array.Copy`` () =

0 commit comments

Comments
 (0)