Skip to content

Commit

Permalink
Added tests
Browse files Browse the repository at this point in the history
Fix tests gaffe
  • Loading branch information
theabhirath committed Feb 17, 2022
1 parent 393ef68 commit 4534056
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,15 @@ end
end
end

@testset "truncated_normal" begin
for sz in [(100,), (100, 100), (2, 3, 32, 64), (2, 3, 4, 32, 64)]
v = truncated_normal(sz...)
@test -1.0 < minimum(v) < 0.0
@test 0.0 < maximum(v) < 1.0
@test eltype(v) == Float32
end
end

@testset "partial_application" begin
big = 1e9

Expand Down

0 comments on commit 4534056

Please sign in to comment.