Skip to content

Commit dcc4661

Browse files
committed
Add tests for plain string interpolation as doc string
1 parent 5a4471c commit dcc4661

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/docs.jl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,3 +196,15 @@ end
196196
let fd = meta(I12515)[Base.collect]
197197
@test fd.order[1].sig == Tuple{Type{I12515.EmptyType{TypeVar(:T, Any, true)}}}
198198
end
199+
200+
201+
# PR #12593
202+
203+
"$(1 + 1)"
204+
f12593_1() = 1
205+
206+
"$(1 + 1) 2"
207+
f12593_2() = 1
208+
209+
@test (@doc f12593_1) !== nothing
210+
@test (@doc f12593_2) !== nothing

0 commit comments

Comments
 (0)