Skip to content

Commit 3f6629c

Browse files
committed
Function no longer mutates, remove !!
1 parent 3063c53 commit 3f6629c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/varinfo.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ end
7878
@test vn2 == vn1
7979
@test hash(vn2) == hash(vn1)
8080

81-
function test_base!!(vi_original)
81+
function test_base(vi_original)
8282
vi = empty!!(deepcopy(vi_original))
8383
@test getlogp(vi) == 0
8484
@test isempty(vi[:])
@@ -116,11 +116,11 @@ end
116116
end
117117

118118
vi = VarInfo()
119-
test_base!!(vi)
120-
test_base!!(DynamicPPL.typed_varinfo(vi))
121-
test_base!!(SimpleVarInfo())
122-
test_base!!(SimpleVarInfo(Dict()))
123-
test_base!!(SimpleVarInfo(DynamicPPL.VarNamedVector()))
119+
test_base(vi)
120+
test_base(DynamicPPL.typed_varinfo(vi))
121+
test_base(SimpleVarInfo())
122+
test_base(SimpleVarInfo(Dict()))
123+
test_base(SimpleVarInfo(DynamicPPL.VarNamedVector()))
124124
end
125125

126126
@testset "get/set/acc/resetlogp" begin

0 commit comments

Comments
 (0)