We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c46af9 commit db9d5a7Copy full SHA for db9d5a7
test/accumulation.jl
@@ -4,7 +4,7 @@
4
@test 16 == add!!(12, 4)
5
end
6
7
- @testset "Differentials" begin
+ @testset "misc AbstractDifferential subtypes" begin
8
@test 16 == add!!(12, @thunk(2*2))
9
@test 16 == add!!(16, Zero())
10
@@ -55,10 +55,10 @@
55
x -> x.+=A
56
)
57
58
- result = -1.0*ones(2,2)
59
- ret = add!!(result, ithunk)
60
- @test ret === result # must be same object
61
- @test result == [0.0 1.0; 2.0 3.0]
+ accumuland = -1.0*ones(2,2)
+ ret = add!!(accumuland, ithunk)
+ @test ret === accumuland # must be same object
+ @test accumuland == [0.0 1.0; 2.0 3.0]
62
63
64
0 commit comments