Skip to content

Commit 68992ea

Browse files
committed
Added debug info
1 parent 49944bf commit 68992ea

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

tests/GraphBLAS-sharp.Tests/BackendCommonTests/BitonicSortTests.fs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ let testContext =
1616
contexts.[0]
1717

1818
let context = testContext.ClContext
19+
printfn "%A" context
1920

2021
let makeTest (q: MailboxProcessor<_>) sort (filter: 'a -> bool) (array: ('n * 'n * 'a) []) =
2122
if array.Length > 0 then
@@ -58,13 +59,13 @@ let makeTest (q: MailboxProcessor<_>) sort (filter: 'a -> bool) (array: ('n * 'n
5859
|> Array.sortBy ((<|||) projection)
5960
|> Array.unzip3
6061

61-
"Row arrays should be equal"
62+
(sprintf "Row arrays should be equal. Actual is \n%A, expected \n%A, input is \n%A" actualRows expectedRows rows)
6263
|> Expect.sequenceEqual actualRows expectedRows
6364

64-
"Column arrays should be equal"
65+
(sprintf "Column arrays should be equal. Actual is \n%A, expected \n%A, input is \n%A" actualCols expectedCols cols)
6566
|> Expect.sequenceEqual actualCols expectedCols
6667

67-
"Value arrays should be equal"
68+
(sprintf "Value arrays should be equal. Actual is \n%A, expected \n%A, input is \n%A" actualVals expectedVals vals)
6869
|> Expect.sequenceEqual actualVals expectedVals
6970

7071
let testFixtures<'a when 'a: equality> config wgSize q filter =

tests/GraphBLAS-sharp.Tests/Program.fs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ open GraphBLAS.FSharp.IO
1111
let allTests =
1212
testList
1313
"All tests"
14-
[ Backend.PrefixSum.tests
14+
[ //Backend.PrefixSum.tests
1515
Backend.BitonicSort.tests
16-
Backend.Convert.tests
17-
Backend.RemoveDuplicates.tests
18-
Backend.Copy.tests
19-
Backend.Replicate.tests
16+
// Backend.Convert.tests
17+
// Backend.RemoveDuplicates.tests
18+
// Backend.Copy.tests
19+
// Backend.Replicate.tests
2020
//Backend.EwiseAdd.tests
21-
Backend.Transpose.tests
21+
// Backend.Transpose.tests
2222
//Matrix.GetTuples.tests
2323
//Matrix.Mxv.tests
2424
//Algo.Bfs.tests

0 commit comments

Comments
 (0)