From b65fde204ee74001649047b369c43b29a18ecb95 Mon Sep 17 00:00:00 2001 From: Nicholas Bauer Date: Mon, 16 Sep 2024 12:22:04 -0400 Subject: [PATCH] format --- test/rulesets/Base/indexing.jl | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/test/rulesets/Base/indexing.jl b/test/rulesets/Base/indexing.jl index 88ab3bbe6..7500b36d6 100644 --- a/test/rulesets/Base/indexing.jl +++ b/test/rulesets/Base/indexing.jl @@ -225,12 +225,8 @@ end if VERSION >= v"1.7" # On 1.6, ComposedFunction doesn't take keywords. Only affects this testing strategy, not real use. - test_rrule( - collect ∘ eachslice, rand(3, 4, 5); fkwargs=(; dims=3) - ) - test_rrule( - collect ∘ eachslice, rand(3, 4, 5); fkwargs=(; dims=(2,)) - ) + test_rrule(collect ∘ eachslice, rand(3, 4, 5); fkwargs=(; dims=3)) + test_rrule(collect ∘ eachslice, rand(3, 4, 5); fkwargs=(; dims=(2,))) test_rrule( collect ∘ eachslice, @@ -250,7 +246,8 @@ end eachslice, FooTwoField.(rand(2, 3, 2), rand(2, 3, 2)); dims=3 ) @test back([fill(Tangent{Any}(; x=0.0, y=1.0), 2, 3), fill(ZeroTangent(), 2, 3)]) == ( - NoTangent(), cat(fill(Tangent{Any}(; x=0.0, y=1.0), 2, 3), fill(ZeroTangent(), 2, 3), dims = 3) + NoTangent(), + cat(fill(Tangent{Any}(; x=0.0, y=1.0), 2, 3), fill(ZeroTangent(), 2, 3); dims=3) ) # Second derivative rule