Skip to content

Commit

Permalink
fix: add test for Fix1
Browse files Browse the repository at this point in the history
  • Loading branch information
Nimrais committed Apr 16, 2024
1 parent ce866b0 commit 6557f93
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/interface/fix1_tests.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@testitem "Support ::Base.Fix1{typeof(logpdf), D}" begin
using Distributions
using ClosedFormExpectations
using StableRNGs
using Base.MathConstants: eulergamma

include("../test_utils.jl")
rng = StableRNG(123)
dist = Exponential(1.0)
fixed_logpdf = Base.Fix1(logpdf, dist)
@test mean(ClosedFormExpectation(), fixed_logpdf, Exponential(10.0)) mean(ClosedFormExpectation(), Logpdf(Exponential(1.0)), Exponential(10.0))
end

0 comments on commit 6557f93

Please sign in to comment.