Skip to content

Commit 02b702f

Browse files
committed
add: map tests for integer support
1 parent 953be9b commit 02b702f

File tree

1 file changed

+4
-0
lines changed
  • tests/GraphBLAS-sharp.Tests/Matrix

1 file changed

+4
-0
lines changed

tests/GraphBLAS-sharp.Tests/Matrix/Map.fs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ let testFixturesMapAdd case =
118118
let q = case.TestContext.Queue
119119
q.Error.Add(fun e -> failwithf "%A" e)
120120

121+
createTestMap case 0 10 (+) (=) ArithmeticOperations.addLeftConst
122+
121123
if Utils.isFloat64Available context.ClDevice then
122124
createTestMap case 0.0 10.0 (+) Utils.floatIsEqual ArithmeticOperations.addLeftConst
123125

@@ -133,6 +135,8 @@ let testFixturesMapMul case =
133135
let q = case.TestContext.Queue
134136
q.Error.Add(fun e -> failwithf "%A" e)
135137

138+
createTestMap case 0 10 (+) (=) ArithmeticOperations.mulLeftConst
139+
136140
if Utils.isFloat64Available context.ClDevice then
137141
createTestMap case 0.0 10.0 (*) Utils.floatIsEqual ArithmeticOperations.mulLeftConst
138142

0 commit comments

Comments
 (0)