Skip to content

Commit dbb811c

Browse files
committed
Use isapprox in adj/trans matvec tests
1 parent e82bd7c commit dbb811c

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

Project.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b"
99
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1010
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
1111

12-
[weakdeps]
13-
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
14-
15-
[extensions]
16-
ToeplitzMatricesStatsBaseExt = "StatsBase"
17-
1812
[compat]
1913
AbstractFFTs = "0.4, 0.5, 1"
2014
Aqua = "0.8"
@@ -27,6 +21,9 @@ StatsBase = "0.32, 0.33, 0.34"
2721
Test = "<0.0.1, 1"
2822
julia = "1.6"
2923

24+
[extensions]
25+
ToeplitzMatricesStatsBaseExt = "StatsBase"
26+
3027
[extras]
3128
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
3229
FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341"
@@ -36,3 +33,6 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
3633

3734
[targets]
3835
test = ["Aqua", "FFTW", "Random", "StatsBase", "Test"]
36+
37+
[weakdeps]
38+
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"

test/runtests.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -617,15 +617,15 @@ end
617617
@test TU isa UpperTriangular
618618
@test istriu(TU)
619619
@test TU == Toeplitz(triu(A)) == triu(T)
620-
@test TU'ones(3) == Matrix(TU)'ones(3)
621-
@test transpose(TU)*ones(3) == transpose(Matrix(TU))*ones(3)
620+
@test TU' * ones(3) Matrix(TU)' * ones(3)
621+
@test transpose(TU)*ones(3) transpose(Matrix(TU))*ones(3)
622622
@test triu(TU, 1) == triu(Matrix(T), 1) == triu(T,1)
623623
TL = LowerTriangular(T)
624624
@test TL isa LowerTriangular
625625
@test istril(TL)
626626
@test TL == Toeplitz(tril(A)) == tril(T)
627-
@test TL'ones(3) == Matrix(TL)'ones(3)
628-
@test transpose(TL)*ones(3) == transpose(Matrix(TL))*ones(3)
627+
@test TL' * ones(3) Matrix(TL)' * ones(3)
628+
@test transpose(TL)*ones(3) transpose(Matrix(TL))*ones(3)
629629
@test tril(TL, -1) == tril(Matrix(T), -1) == tril(T,-1)
630630
for n in (65, 128)
631631
A = randn(n, n)

0 commit comments

Comments
 (0)