|
1 | 1 | open Expecto |
2 | 2 | open GraphBLAS.FSharp.Tests.Backend |
3 | 3 |
|
4 | | -// let matrixTests = |
5 | | -// testList |
6 | | -// "Matrix tests" |
7 | | -// [ Matrix.Convert.tests |
8 | | -// Matrix.Map2.addTests |
9 | | -// Matrix.Map2.addAtLeastOneTests |
10 | | -// Matrix.Map2.mulAtLeastOneTests |
11 | | -// Matrix.Map2.addAtLeastOneToCOOTests |
12 | | -// Matrix.Mxm.tests |
13 | | -// Matrix.Transpose.tests ] |
14 | | -// |> testSequenced |
15 | | -// |
16 | | -// let commonTests = |
17 | | -// let clArrayTests = |
18 | | -// testList |
19 | | -// "ClArray" |
20 | | -// [ Common.ClArray.PrefixSum.tests |
21 | | -// Common.ClArray.RemoveDuplicates.tests |
22 | | -// Common.ClArray.Copy.tests |
23 | | -// Common.ClArray.Replicate.tests |
24 | | -// Common.ClArray.Exists.tests |
25 | | -// Common.ClArray.Map.tests |
26 | | -// Common.ClArray.Map2.addTests |
27 | | -// Common.ClArray.Map2.mulTests |
28 | | -// Common.ClArray.Choose.tests ] |
29 | | -// |
30 | | -// testList |
31 | | -// "Common tests" |
32 | | -// [ clArrayTests |
33 | | -// Common.BitonicSort.tests |
34 | | -// Common.Scatter.tests |
35 | | -// Common.Reduce.tests |
36 | | -// Common.Sum.tests ] |
37 | | -// |> testSequenced |
| 4 | +let matrixTests = |
| 5 | + testList |
| 6 | + "Matrix tests" |
| 7 | + [ Matrix.Convert.tests |
| 8 | + Matrix.Map2.addTests |
| 9 | + Matrix.Map2.addAtLeastOneTests |
| 10 | + Matrix.Map2.mulAtLeastOneTests |
| 11 | + Matrix.Map2.addAtLeastOneToCOOTests |
| 12 | + Matrix.Mxm.tests |
| 13 | + Matrix.Transpose.tests ] |
| 14 | + |> testSequenced |
| 15 | + |
| 16 | +let commonTests = |
| 17 | + let clArrayTests = |
| 18 | + testList |
| 19 | + "ClArray" |
| 20 | + [ Common.ClArray.PrefixSum.tests |
| 21 | + Common.ClArray.RemoveDuplicates.tests |
| 22 | + Common.ClArray.Copy.tests |
| 23 | + Common.ClArray.Replicate.tests |
| 24 | + Common.ClArray.Exists.tests |
| 25 | + Common.ClArray.Map.tests |
| 26 | + Common.ClArray.Map2.addTests |
| 27 | + Common.ClArray.Map2.mulTests |
| 28 | + Common.ClArray.Choose.tests ] |
38 | 29 |
|
39 | | -// let vectorTests = |
40 | | -// testList |
41 | | -// "Vector tests" |
42 | | -// [ Vector.SpMV.tests |
43 | | -// Vector.ZeroCreate.tests |
44 | | -// Vector.OfList.tests |
45 | | -// Vector.Copy.tests |
46 | | -// Vector.Convert.tests |
47 | | -// Vector.Map2.addTests |
48 | | -// Vector.Map2.mulTests |
49 | | -// Vector.Map2.addAtLeastOneTests |
50 | | -// Vector.Map2.mulAtLeastOneTests |
51 | | -// Vector.Map2.complementedGeneralTests |
52 | | -// Vector.AssignByMask.tests |
53 | | -// Vector.AssignByMask.complementedTests |
54 | | -// Vector.Reduce.tests ] |
55 | | -// |> testSequenced |
| 30 | + testList |
| 31 | + "Common tests" |
| 32 | + [ clArrayTests |
| 33 | + Common.BitonicSort.tests |
| 34 | + Common.Scatter.tests |
| 35 | + Common.Reduce.tests |
| 36 | + Common.Sum.tests ] |
| 37 | + |> testSequenced |
56 | 38 |
|
57 | | -// let algorithmsTests = |
58 | | -// testList "Algorithms tests" [ Algorithms.BFS.tests ] |
59 | | -// |> testSequenced |
| 39 | +let vectorTests = |
| 40 | + testList |
| 41 | + "Vector tests" |
| 42 | + [ Vector.SpMV.tests |
| 43 | + Vector.ZeroCreate.tests |
| 44 | + Vector.OfList.tests |
| 45 | + Vector.Copy.tests |
| 46 | + Vector.Convert.tests |
| 47 | + Vector.Map2.addTests |
| 48 | + Vector.Map2.mulTests |
| 49 | + Vector.Map2.addAtLeastOneTests |
| 50 | + Vector.Map2.mulAtLeastOneTests |
| 51 | + Vector.Map2.complementedGeneralTests |
| 52 | + Vector.AssignByMask.tests |
| 53 | + Vector.AssignByMask.complementedTests |
| 54 | + Vector.Reduce.tests ] |
| 55 | + |> testSequenced |
| 56 | + |
| 57 | +let algorithmsTests = |
| 58 | + testList "Algorithms tests" [ Algorithms.BFS.tests ] |
| 59 | + |> testSequenced |
60 | 60 |
|
61 | 61 | [<Tests>] |
62 | 62 | let allTests = |
63 | 63 | testList |
64 | 64 | "All tests" |
65 | | - [ Matrix.Map2.addTests ] |
| 65 | + [ matrixTests |
| 66 | + commonTests |
| 67 | + vectorTests |
| 68 | + algorithmsTests ] |
66 | 69 | |> testSequenced |
67 | 70 |
|
68 | 71 | [<EntryPoint>] |
|
0 commit comments