Skip to content

Commit 7d0462a

Browse files
Merge pull request #592 from ChrisRackauckas-Claude/apply-runic-formatting
Apply Runic formatting to mooncake.jl and named_array_partition_tests.jl
2 parents 87c7a04 + 23e8c06 commit 7d0462a

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

test/mooncake.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ using RecursiveArrayTools, Mooncake, Test
1414

1515
@testset "ArrayPartition increment_and_get_rdata!" begin
1616
@test Base.get_extension(RecursiveArrayTools, :RecursiveArrayToolsMooncakeExt) !==
17-
nothing
17+
nothing
1818

1919
# Tangent produced by an upstream ChainRule.
2020
t = ArrayPartition([1.0, 2.0], [3.0, 4.0])

test/named_array_partition_tests.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,21 +58,21 @@ end
5858
@test x[[1, 2]] == [1.0, 1.0]
5959
@test x[[1, 4]] == [1.0, 2.0]
6060

61-
@test x[1:2] isa Vector{Float64}
62-
@test x[1:end] isa Vector{Float64}
61+
@test x[1:2] isa Vector{Float64}
62+
@test x[1:end] isa Vector{Float64}
6363
@test x[[1, 4]] isa Vector{Float64}
6464

6565
# Inferred return types: Vector, not Union
66-
@test (@inferred x[1:2]) isa Vector{Float64}
67-
@test (@inferred x[1:length(x)]) isa Vector{Float64}
68-
@test (@inferred x[[1, 4]]) isa Vector{Float64}
66+
@test (@inferred x[1:2]) isa Vector{Float64}
67+
@test (@inferred x[1:length(x)]) isa Vector{Float64}
68+
@test (@inferred x[[1, 4]]) isa Vector{Float64}
6969

7070
# `similar` with a non-matching dims falls back to the backing array;
7171
# with matching dims keeps the NamedArrayPartition wrapper.
7272
@test similar(x, Float64, (2,)) isa Vector{Float64}
73-
@test similar(x, (2,)) isa Vector{Float64}
73+
@test similar(x, (2,)) isa Vector{Float64}
7474
@test similar(x, Float64, size(x)) isa NamedArrayPartition
75-
@test similar(x, size(x)) isa NamedArrayPartition
75+
@test similar(x, size(x)) isa NamedArrayPartition
7676

7777
# Scalar indexing untouched and type-stable
7878
@test x[1] == 1.0

0 commit comments

Comments
 (0)