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 e551e16 commit 3babb3cCopy full SHA for 3babb3c
test/core_dispatch.jl
@@ -140,3 +140,10 @@ tmp_dual_du_APN = get_tmp(cache_AP, dual_AP[1])
140
@test size(tmp_dual_du_APN) == size(u0_AP)
141
@test_broken typeof(tmp_dual_du_APN) == typeof(dual_AP)
142
@test eltype(tmp_dual_du_APN) == eltype(dual_AP)
143
+
144
+a = PreallocationTools.DiffCache(zeros(4), 4)
145
+b = PreallocationTools.DiffCache(zeros(4), Val{4}())
146
+c = PreallocationTools.DiffCache(zeros(4), Val{4})
147
+fn = fieldnames(PreallocationTools.DiffCache)
148
+@test all(getfield(a, fn[i]) == getfield(b, fn[i]) for i in eachindex(fn))
149
+@test all(getfield(a, fn[i]) == getfield(c, fn[i]) for i in eachindex(fn))
0 commit comments