Skip to content

Commit a2ccfd6

Browse files
committed
shorten nested testset names
1 parent 5d1ad38 commit a2ccfd6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/silhouette.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,23 @@ c = [3, 1]
3434

3535
@test silhouettes(a, c, D) [0.5, 0.5, -1/3, 0.0]
3636

37-
@testset "silhouettes() handle zero cluster distances correctly" begin
37+
@testset "zero cluster distances correctly" begin
3838
a = [fill(1, 5); fill(2, 5)]
3939
d = fill(0, (10, 10))
4040

4141
@test silhouettes(a, d) == fill(0.0, 10)
4242

4343
d = fill(1, (10, 10))
4444
d[1, 2] = d[2, 1] = 5
45-
45+
4646
@test silhouettes(a, d) == [[-0.5, -0.5]; fill(0.0, 8)]
4747
end
4848

49-
@testset "silhouette() throws an error when degenerated clustering is given" begin
49+
@testset "throws an error when degenerated clustering is given" begin
5050
a = fill(1, 10)
5151
d = fill(1, (10, 10))
5252
for i in 1:10; d[i, i] = 0; end
53-
53+
5454
@test_throws ArgumentError silhouettes(a, d)
5555
end
5656

0 commit comments

Comments
 (0)