Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalle committed Jul 22, 2024
1 parent 25797a8 commit d27b5a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion DifferentiationInterfaceTest/src/scenarios/default.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ function num_to_num_scenarios_onearg(x::Number; dx::Number, dy::Number)

# add scenarios [x] -> [y] to test 1-sized everything
f_vec(x) = [f(only(x))]
f_vec!(y, x) = y[only(eachindex(y))] = f(only(x))
function f_vec!(y, x)
y[only(eachindex(y))] = f(only(x))
return nothing
end

for place in (:outofplace, :inplace)
append!(
Expand Down

0 comments on commit d27b5a9

Please sign in to comment.