Skip to content

Commit

Permalink
rm debug println def
Browse files Browse the repository at this point in the history
  • Loading branch information
jrevels committed Aug 9, 2018
1 parent 2bb6df5 commit 340cfe1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -656,8 +656,6 @@ function Cassette.execute(ctx::DiffCtxWithTag{T}, ::Typ(+), x::Real, y::Tagged{T
return tag(x + vy, ctx, dy)
end

Cassette.execute(ctx::DiffCtx, ::typeof(println), args...) = println(args...)

@test D(sin, 1) === cos(1)
@test D(x -> D(sin, x), 1) === -sin(1)
@test D(x -> sin(x) * cos(x), 1) === cos(1)^2 - sin(1)^2
Expand Down

0 comments on commit 340cfe1

Please sign in to comment.