Skip to content

Commit

Permalink
breaking adapt tests of special cases: Int partype
Browse files Browse the repository at this point in the history
  • Loading branch information
bgctw committed Sep 21, 2023
1 parent ae09da6 commit b8511e9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,14 @@ r = RealInterval(1.5, 4.0)

# special cases
@test partype(Kolmogorov()) == Float64
@test partype(Hypergeometric(2, 2, 2)) == Float64
@test partype(DiscreteUniform(0, 4)) == Float64
# twutz: Hypergeometric needs integer parameters
#@test partype(Hypergeometric(2, 2, 2)) == Float64
@test partype(Hypergeometric(2, 2, 2)) == Int
@test partype(Hypergeometric(2.0, 2, 2)) == Int
# twutz: should DiscreteUniform needs a partype of Int
#@test partype(DiscreteUniform(0, 4)) == Float64
@test partype(DiscreteUniform(0, 4)) == Int
@test partype(DiscreteUniform(0.0, 4)) == Int

A = rand(1:10, 5, 5)
B = rand(Float32, 4)
Expand Down

0 comments on commit b8511e9

Please sign in to comment.