Skip to content

Commit

Permalink
added test because why not
Browse files Browse the repository at this point in the history
  • Loading branch information
lostella committed Dec 2, 2018
1 parent 6d7aa35 commit 8ab41c3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/test_cubeNormL2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ for R in [Float16, Float32, Float64]
predicates_test(f)
x = randn(T, shape)
call_test(f, x)
prox_test(f, x, R(0.5)+rand(R))
gamma = R(0.5)+rand(R)
y, f_y = prox_test(f, x, gamma)
grad_f_y, f_y = gradient(f, y)
@test grad_f_y x - y
end
end
end
Expand Down

0 comments on commit 8ab41c3

Please sign in to comment.