Skip to content

Commit 86c1a1b

Browse files
committed
add a test for Tuple and formatting
1 parent 559e622 commit 86c1a1b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/utils.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,11 @@
4848
x = rand(dist)
4949
@test DynamicPPL.tovec(x) == vec(x.UL)
5050

51-
nt = (a = [1, 2], b = 3.0)
51+
nt = (a=[1, 2], b=3.0)
5252
@test DynamicPPL.tovec(nt) == [1, 2, 3.0]
53+
54+
t = (2.0, [3.0, 4.0])
55+
@test DynamicPPL.tovec(t) == [2.0, 3.0, 4.0]
5356
end
5457

5558
@testset "unique_syms" begin

0 commit comments

Comments
 (0)