Skip to content

Commit

Permalink
Enable all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
willtebbutt committed May 23, 2024
1 parent cdafc23 commit 26d7b78
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions src/rrules/builtins.jl
Original file line number Diff line number Diff line change
Expand Up @@ -972,28 +972,28 @@ function generate_derived_rrule!!_test_cases(rng_ctor, ::Val{:builtins})
false, :none, nothing,
x -> +(x...), randn(33),
),
# (
# false, :none, nothing,
# (
# function (x)
# rx = Ref(x)
# pointerref(bitcast(Ptr{Float64}, pointer_from_objref(rx)), 1, 1)
# end
# ),
# 5.0,
# ),
# (
# false, :none, nothing,
# (v, x) -> (pointerset(pointer(x), v, 2, 1); x), 3.0, randn(5),
# ),
# (
# false, :none, nothing,
# x -> (pointerset(pointer(x), UInt8(3), 2, 1); x), rand(UInt8, 5),
# ),
# (false, :none, nothing, getindex, randn(5), [1, 1]),
# (false, :none, nothing, getindex, randn(5), [1, 2, 2]),
# (false, :none, nothing, setindex!, randn(5), [4.0, 5.0], [1, 1]),
# (false, :none, nothing, setindex!, randn(5), [4.0, 5.0, 6.0], [1, 2, 2]),
(
false, :none, nothing,
(
function (x)
rx = Ref(x)
pointerref(bitcast(Ptr{Float64}, pointer_from_objref(rx)), 1, 1)
end
),
5.0,
),
(
false, :none, nothing,
(v, x) -> (pointerset(pointer(x), v, 2, 1); x), 3.0, randn(5),
),
(
false, :none, nothing,
x -> (pointerset(pointer(x), UInt8(3), 2, 1); x), rand(UInt8, 5),
),
(false, :none, nothing, getindex, randn(5), [1, 1]),
(false, :none, nothing, getindex, randn(5), [1, 2, 2]),
(false, :none, nothing, setindex!, randn(5), [4.0, 5.0], [1, 1]),
(false, :none, nothing, setindex!, randn(5), [4.0, 5.0, 6.0], [1, 2, 2]),
]
memory = Any[]
return test_cases, memory
Expand Down

0 comments on commit 26d7b78

Please sign in to comment.