Skip to content

Commit 14f9b94

Browse files
committed
fix tests and increment/decrement
1 parent 7a9e3fc commit 14f9b94

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/libutils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ end
6565

6666
@inline function decrement!(I)
6767
I isa Number && (return I - 1)
68-
parent(I) isa Vector && (return I .-= 1)
68+
I isa AbstractArray && (return I .-= 1)
6969
return I # don't need to modify here, likely an AllType.
7070
end
7171

7272
@inline function increment!(I)
7373
I isa Number && (return I + 1)
74-
parent(I) isa Vector && (return I .+= 1)
74+
I isa AbstractArray && (return I .+= 1)
7575
return I # don't need to modify here, likely an AllType.
7676
end
7777

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ using ChainRulesTestUtils
66
using ChainRulesCore
77
using FiniteDifferences
88
using SuiteSparseGraphBLAS
9-
using SuiteSparseGraphBLAS: pair, second
9+
using SuiteSparseGraphBLAS: pair, second, xtype, ytype, ztype
1010
Random.seed!(1)
1111

1212
function include_test(path)

0 commit comments

Comments
 (0)