Skip to content

Commit cb49af1

Browse files
committed
add Ginibre tests
1 parent e6d555e commit cb49af1

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

test/Ginibre.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using RandomMatrices
2+
using Test
3+
4+
for (β, T, N) in [(1, Real, n), (2, Complex, n), (4, Complex, 2n)]
5+
@testset "Ginibre (β = $(β))" begin
6+
d = Ginibre(β)
7+
A = rand(d, n)
8+
@test eltype(A) <: T
9+
@test size(A) == (N, N)
10+
end
11+
end

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ using Test
77
include("GaussianEnsembles.jl")
88
include("FormalPowerSeries.jl")
99
include("Haar.jl")
10+
include("Ginibre.jl")
1011
include("StochasticProcess.jl")
1112
include("test_throws.jl")
1213
include("doctests.jl")

0 commit comments

Comments
 (0)