Skip to content

Commit d0c889c

Browse files
Improve formatting
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 73d940d commit d0c889c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

test/chainrules.jl

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,10 @@
3434
@testset "$type" for type in (Vector, SVector{3})
3535
test_rrule(dist, type(rand(3)), type(rand(3)))
3636
end
37-
@testset "$type1, $type2" for type1 in (Matrix, SMatrix{3, 2}),
38-
type2 in (Matrix, SMatrix{3, 4})
39-
test_rrule(
40-
Distances.pairwise, dist, type1(rand(3, 2));
41-
fkwargs=(dims=2,)
42-
)
37+
@testset "$type1, $type2" for type1 in (Matrix, SMatrix{3,2}),
38+
type2 in (Matrix, SMatrix{3,4})
39+
40+
test_rrule(Distances.pairwise, dist, type1(rand(3, 2)); fkwargs=(dims=2,))
4341
test_rrule(
4442
Distances.pairwise, dist, type1(rand(3, 2)), type2(rand(3, 4));
4543
fkwargs=(dims=2,)

0 commit comments

Comments
 (0)