Skip to content

Commit 0d49b07

Browse files
committed
Simplify tests
1 parent a7df254 commit 0d49b07

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

test/activation.jl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,8 @@ end
8686

8787
@testset "Array input" begin
8888
x = rand(5)
89-
9089
for a in ACTIVATION_FUNCTIONS
91-
if a == leakyrelu || a == elu
92-
@test_throws ErrorException a(x, 1.0)
93-
else
94-
@test_throws ErrorException a(x)
95-
end
90+
@test_throws ErrorException a(x)
9691
end
9792
end
9893

0 commit comments

Comments
 (0)