Skip to content

Commit e1d1d10

Browse files
authored
Fix tests
1 parent 05b4aa5 commit e1d1d10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/scalarstats.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ scale = rand()
215215
@test @inferred(crossentropy([1//5, 3//10, 1//2], [0.3f0, 0.4f0, 0.3f0], 2f0)) isa Float32
216216

217217
# deprecated, should throw an `ArgumentError` at some point
218-
logpattern = (:warn, "support for empty collections of probabilities will be removed")
218+
logpattern = (:warn, "support for empty collections will be removed since they do not represent proper probability distributions")
219219
@test iszero(@test_logs logpattern @inferred(crossentropy(Float64[], Float64[])))
220220
@test iszero(@test_logs logpattern @inferred(crossentropy(Int[], Int[])))
221221

@@ -229,7 +229,7 @@ logpattern = (:warn, "support for empty collections of probabilities will be rem
229229
@test iszero(@inferred(kldivergence([0, 1], [0f0, 1f0])))
230230

231231
# deprecated, should throw an `ArgumentError` at some point
232-
logpattern = (:warn, "support for empty collections of probabilities will be removed")
232+
logpattern = (:warn, "support for empty collections will be removed since they do not represent proper probability distributions")
233233
@test iszero(@test_logs logpattern @inferred(kldivergence(Float64[], Float64[])))
234234
@test iszero(@test_logs logpattern @inferred(kldivergence(Int[], Int[])))
235235

0 commit comments

Comments
 (0)