From 52610f8c69617309fcc80b68412edcf1a6537f14 Mon Sep 17 00:00:00 2001 From: Maxime Mouchet Date: Sat, 10 Oct 2020 19:43:05 +0200 Subject: [PATCH] tests: disable experimental from_dict(...) --- test/unit.jl | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/test/unit.jl b/test/unit.jl index 2f59e11..d208b35 100644 --- a/test/unit.jl +++ b/test/unit.jl @@ -304,19 +304,20 @@ end d = JSON.parse(json(hmm2)) @test_broken from_dict(HMM{Multivariate,Float64}, MvNormal, d) == hmm2 - hmm3 = HMM( - [0.9 0.1; 0.1 0.9], - [ - MixtureModel([Normal(0, 1)]), - MixtureModel([Normal(5, 2), Normal(10, 1)], [0.25, 0.75]), - ], - ) - d = JSON.parse(json(hmm3)) - @test_broken from_dict( - HMM{Univariate,Float64}, - MixtureModel{Univariate,Continuous,Normal,Float64}, - d, - ) == hmm3 + # /!\ This test fails with Distributions <= v0.23.4, and works otherwise. + # hmm3 = HMM( + # [0.9 0.1; 0.1 0.9], + # [ + # MixtureModel([Normal(0, 1)]), + # MixtureModel([Normal(5, 2), Normal(10, 1)], [0.25, 0.75]), + # ], + # ) + # d = JSON.parse(json(hmm3)) + # @test_broken from_dict( + # HMM{Univariate,Float64}, + # MixtureModel{Univariate,Continuous,Normal,Float64}, + # d, + # ) == hmm3 # MixtureModel <-> HMM (stationnary distribution) a = [0.4, 0.6]