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 db39e48 commit 8ec0e2bCopy full SHA for 8ec0e2b
test/rulesets/Base/base.jl
@@ -1,3 +1,7 @@
1
+mutable struct MDemo
2
+ x::Float64
3
+end
4
+
5
@testset "base.jl" begin
6
@testset "copysign" begin
7
# don't go too close to zero as the numerics may jump over it yielding wrong results
@@ -10,10 +14,6 @@
10
14
end
11
15
12
16
@testset "setfield!" begin
13
- mutable struct MDemo
- x::Float64
- end
-
17
test_frule(setfield!, MDemo(3.5) ⊢ MutableTangent{MDemo}(; x=2.0), :x, 5.0)
18
test_frule(setfield!, MDemo(3.5) ⊢ MutableTangent{MDemo}(; x=2.0), 1, 5.0)
19
0 commit comments