File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -449,6 +449,7 @@ Base.IteratorEltype(::Type{<:AbstractContext}) = Base.EltypeUnknown()
449
449
1.0 ~ Normal ()
450
450
return nothing
451
451
end
452
+
452
453
function test_generating_new_values (strategy:: AbstractInitStrategy )
453
454
@testset " generating new values: $(typeof (strategy)) " begin
454
455
# Check that init!! can generate values that weren't there
@@ -469,6 +470,7 @@ Base.IteratorEltype(::Type{<:AbstractContext}) = Base.EltypeUnknown()
469
470
end
470
471
end
471
472
end
473
+
472
474
function test_replacing_values (strategy:: AbstractInitStrategy )
473
475
@testset " replacing old values: $(typeof (strategy)) " begin
474
476
# Check that init!! can overwrite values that were already there.
@@ -488,6 +490,7 @@ Base.IteratorEltype(::Type{<:AbstractContext}) = Base.EltypeUnknown()
488
490
end
489
491
end
490
492
end
493
+
491
494
function test_rng_respected (strategy:: AbstractInitStrategy )
492
495
@testset " check that RNG is respected: $(typeof (strategy)) " begin
493
496
model = test_init_model ()
@@ -508,6 +511,7 @@ Base.IteratorEltype(::Type{<:AbstractContext}) = Base.EltypeUnknown()
508
511
end
509
512
end
510
513
end
514
+
511
515
function test_link_status_respected (strategy:: AbstractInitStrategy )
512
516
@testset " check that varinfo linking is preserved: $(typeof (strategy)) " begin
513
517
@model logn () = a ~ LogNormal ()
You can’t perform that action at this time.
0 commit comments