Skip to content

Commit 2fc822b

Browse files
committed
Test names updated
1 parent d2d0119 commit 2fc822b

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

test/apply_Ht_to_b_test.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
@testset "Testset 1" begin
1+
@testset "apply_Ht_to_b returns original vector when Ht is identity" begin
22
Ht = Matrix{Float64}(I, 3, 3)
33
b = [1.0, 2.0, 3.0]
44

55
@test apply_Ht_to_b(Ht, b) == b
66
end
77

8-
@testset "Testset 2" begin
8+
@testset "apply_Ht_to_b correctly applies H^T to vector" begin
99
Ht =[1.0 0.0 0.0;
1010
0.0 0.0 1.0;
1111
0.0 1.0 0.0]
@@ -15,7 +15,7 @@ end
1515
@test apply_Ht_to_b(Ht, b) == [4.0, 6.0, 5.0]
1616
end
1717

18-
@testset "Testset 3" begin
18+
@testset "apply_Ht_to_b correctly applies Givens rotation to vector" begin
1919
c, s = 3/5, 4/5
2020

2121
Ht =[c s;
@@ -26,7 +26,7 @@ end
2626
@test apply_Ht_to_b(Ht, b) [3.0, -4.0]
2727
end
2828

29-
@testset "Testset 4" begin
29+
@testset "pply_Ht_to_b throws DimensionMismatch" begin
3030
Ht = Matrix{Float64}(I, 3, 3)
3131
b = [1.0, 2.0]
3232

test/bidiagonalize_with_H_tests.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@testset "Testset 4" begin
1+
@testset "bidiagonalize_with_H preserves orthogonality and factorization identities" begin
22
A = [1.0 2.0 3.0;
33
4.0 5.0 6.0;
44
7.0 8.0 10.0]
@@ -26,7 +26,7 @@
2626
@test L * K C
2727
end
2828

29-
@testset "Testset 5" begin
29+
@testset "bidiagonalize_with_H produces upper bidiagonal matrix" begin
3030
A = [2.0 1.0 3.0;
3131
4.0 5.0 6.0;
3232
7.0 8.0 9.0]
@@ -48,7 +48,7 @@ end
4848
end
4949
end
5050

51-
@testset "Testset 6" begin
51+
@testset "bidiagonalize_with_H handles rectangular matrices" begin
5252
A = [1.0 2.0 3.0;
5353
4.0 5.0 6.0;
5454
7.0 8.0 9.0;
@@ -84,7 +84,7 @@ end
8484
end
8585
end
8686

87-
@testset "Testset 7" begin
87+
@testset "bidiagonalize_with_H correctly zeroes subdiagonal entry in small matrix" begin
8888
A = [3.0 0.0;
8989
4.0 5.0]
9090

test/rotate_cols_test.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@testset "Testset 1" begin
1+
@testset "rotate_cols! zeros second column entry using Givens rotation" begin
22
M = [3.0 4.0;
33
1.0 2.0]
44

test/rotate_rows_test.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@testset "rotate_rows!" begin
1+
@testset "rotate_rows! correctly applies Givens rotation to rows" begin
22
M = [1.0 2.0;
33
3.0 4.0]
44

0 commit comments

Comments
 (0)