Skip to content

Commit 3babb3c

Browse files
committed
more tests
1 parent e551e16 commit 3babb3c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/core_dispatch.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,10 @@ tmp_dual_du_APN = get_tmp(cache_AP, dual_AP[1])
140140
@test size(tmp_dual_du_APN) == size(u0_AP)
141141
@test_broken typeof(tmp_dual_du_APN) == typeof(dual_AP)
142142
@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

Comments
 (0)