Skip to content

Commit

Permalink
test warn
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Stukalov committed Dec 19, 2023
1 parent 9b87b8a commit 6704580
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/fuzzycmeans.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ x = rand(rng, d, n)
@testset "fuzziness = 2.0" begin
fuzziness = 2.0
Random.seed!(rng, 34568)
@test_logs (:warn, r"^Fuzzy C-means terminated without convergence") fuzzy_cmeans(x, k, fuzziness; maxiter=1, rng=rng)
r = fuzzy_cmeans(x, k, fuzziness; rng=rng)
@test isa(r, FuzzyCMeansResult{Float64})
@test nclusters(r) == k
Expand Down

0 comments on commit 6704580

Please sign in to comment.