Skip to content

Commit c6aaf20

Browse files
committed
fixed broken test
1 parent eb564e5 commit c6aaf20

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/compiler.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,8 +623,11 @@ end
623623
x ~ Normal(m, 1)
624624
end
625625

626-
m = demo(0.)
627-
s = @doc(m)
626+
s = @doc(demo)
628627
@test s == "This is a test"
628+
629+
# Verify that adding docstring didn't completely break execution of model
630+
m = demo(0.)
631+
@test m() isa Float64
629632
end
630633
end

0 commit comments

Comments
 (0)