Skip to content

Commit 92b186f

Browse files
committed
add: ClArray.pairwise
1 parent 830b2f9 commit 92b186f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/GraphBLAS-sharp.Tests/Common/ClArray/Pairwise.fs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ let makeTest<'a> isEqual testFun (array: 'a [] ) =
2222
let clArray = context.CreateClArray array
2323

2424
testFun processor HostInterop clArray
25-
|> Option.bind (fun (clFirstActual: ClArray<_>, clSecondActual: ClArray<_>) ->
26-
let firstActual = clFirstActual.ToHostAndFree processor
27-
let secondActual = clSecondActual.ToHostAndFree processor
25+
|> Option.bind (fun (actual: ClArray<_>) ->
26+
let firstActual, secondActual =
27+
actual.ToHostAndFree processor
28+
|> Array.unzip
2829

2930
let firstExpected, secondExpected = Array.pairwise array |> Array.unzip
3031

0 commit comments

Comments
 (0)