Skip to content

Commit

Permalink
Fix documentation mistake in Test.jl (#47552)
Browse files Browse the repository at this point in the history
Fix a mistake in the documentation: remove the interpolated loop indices from the `@testset` macro with a function call, since there are no loops in that example.
  • Loading branch information
cmichelenstrofer authored Nov 14, 2022
1 parent b44ce13 commit 7116a8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/Test/src/Test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1309,7 +1309,7 @@ end
@testset [CustomTestSet] [option=val ...] ["description"] begin ... end
@testset [CustomTestSet] [option=val ...] ["description \$v"] for v in (...) ... end
@testset [CustomTestSet] [option=val ...] ["description \$v, \$w"] for v in (...), w in (...) ... end
@testset [CustomTestSet] [option=val ...] ["description \$v, \$w"] foo()
@testset [CustomTestSet] [option=val ...] ["description"] foo()
@testset let v = (...) ... end
# With begin/end or function call
Expand Down

0 comments on commit 7116a8b

Please sign in to comment.