Skip to content

Commit

Permalink
fix constructor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
seabbs committed Jun 11, 2024
1 parent d5f847d commit 78c54e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Test default constructor
nb = NegativeBinomialError()
@test typeof(nb) <: NegativeBinomialError
@test typeof(nb) <: TuringObservationErrorModel
@test typeof(nb) <: AbstractTuringObservationErrorModel
@test all(rand(nb.cluster_factor_prior, 100) .>= 0.0)
@test isapprox(mean(nb.cluster_factor_prior), 0.01)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@testitem "PoissonErrorConstructor" begin
using Distributions
# Test default constructor
poi = PoissonError
poi = PoissonError()
@test typeof(poi) <: PoissonError
@test typeof(poi) <: TuringObservationErrorModel
@test typeof(poi) <: AbstractTuringObservationErrorModel
end

@testitem "Testing PoissonError against theoretical properties" begin
Expand Down

0 comments on commit 78c54e3

Please sign in to comment.