Skip to content

Commit 426bff6

Browse files
committed
Add tests to cover cases where output is truncated
1 parent ff35596 commit 426bff6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/lapack.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,10 @@ end
354354
@test_throws DimensionMismatch LAPACK.ormqr!('L','N',A,temp,B)
355355
@test_throws ArgumentError LAPACK.ormqr!('X','N',A,temp,B)
356356
@test_throws ArgumentError LAPACK.ormqr!('L','X',A,temp,B)
357+
A = rand(elty,10,11)
358+
A,tau = LAPACK.geqrf!(A)
359+
B = copy(A)
360+
@test LAPACK.orgqr!(B,tau) LAPACK.ormqr!('R','N',A,tau,Matrix{elty}(I, 10, 10))
357361

358362
A = rand(elty,10,10)
359363
A,tau = LAPACK.geqlf!(A)
@@ -372,6 +376,11 @@ end
372376
@test_throws ArgumentError LAPACK.ormql!('X','N',A,temp,B)
373377
@test_throws ArgumentError LAPACK.ormql!('L','X',A,temp,B)
374378

379+
A = rand(elty,10,11)
380+
A,tau = LAPACK.geqlf!(A)
381+
B = copy(A)
382+
@test LAPACK.orgql!(B,tau) LAPACK.ormql!('R','N',A,tau,Matrix{elty}(I, 10, 10))
383+
375384
A = rand(elty,10,10)
376385
A,tau = LAPACK.gerqf!(A)
377386
@test_throws DimensionMismatch LAPACK.orgrq!(A,tau,11)

0 commit comments

Comments
 (0)