Skip to content

Commit 74f2182

Browse files
committed
add test/test_throws.jl
1 parent d636a3b commit 74f2182

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

test/test_throws.jl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using RandomMatrices
2+
using Test
3+
4+
@testset "throws" begin
5+
6+
@test_throws ArgumentError rand(GaussianLaguerre(10, rand(Float64)), rand(2:5))
7+
@test_throws ErrorException bidrand(GaussianLaguerre(10, rand(Float64)), rand(2:5))
8+
@test_throws ArgumentError rand(Ginibre(10), rand(2:5))
9+
@test_throws ArgumentError rand(Haar(10), rand(2:5))
10+
@test_throws ArgumentError randfast(Haar(10), rand(2:5))
11+
12+
end # testset

0 commit comments

Comments
 (0)