Skip to content

Commit 24e5f03

Browse files
add unit test for DiagonalBFGS
1 parent 0d71bf0 commit 24e5f03

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_diag.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ end
120120
mul!(u, C, v)
121121
@test (@allocated mul!(u, C, v)) == 0
122122
@test (@wrappedallocs push!(C, u, v)) == 0
123+
D = DiagonalBFGS(d)
124+
mul!(u, D, v)
125+
@test (@allocated mul!(u, D, v)) == 0
126+
@test (@wrappedallocs push!(D, u, v)) == 0
123127
end
124128

125129
@testset "reset" begin

0 commit comments

Comments
 (0)