We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@test_throws
1 parent 6f87624 commit a735682Copy full SHA for a735682
stdlib/Test/src/Test.jl
@@ -682,6 +682,9 @@ a matching function,
682
or a value (which will be tested for equality by comparing fields).
683
Note that `@test_throws` does not support a trailing keyword form.
684
685
+!!! compat "Julia 1.8"
686
+ The ability to specify anything other than a type or a value as `exception` requires Julia v1.8 or later.
687
+
688
# Examples
689
```jldoctest
690
julia> @test_throws BoundsError [1, 2, 3][4]
0 commit comments