Skip to content

Commit

Permalink
fix whitespace in test/ranges.jl (#49648)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth authored May 5, 2023
1 parent 6bcdd00 commit 9201414
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions test/ranges.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2442,16 +2442,16 @@ end
end

@testset "PR 49516" begin
struct PR49516 <: Signed
n::Int
end
PR49516(f::PR49516) = f
Base.:*(x::Integer, f::PR49516) = PR49516(*(x, f.n))
Base.:+(f1::PR49516, f2::PR49516) = PR49516(+(f1.n, f2.n))
Base.show(io::IO, f::PR49516) = print(io, "PR49516(", f.n, ")")

srl = StepRangeLen(PR49516(1), PR49516(2), 10)
@test sprint(show, srl) == "PR49516(1):PR49516(2):PR49516(19)"
struct PR49516 <: Signed
n::Int
end
PR49516(f::PR49516) = f
Base.:*(x::Integer, f::PR49516) = PR49516(*(x, f.n))
Base.:+(f1::PR49516, f2::PR49516) = PR49516(+(f1.n, f2.n))
Base.show(io::IO, f::PR49516) = print(io, "PR49516(", f.n, ")")

srl = StepRangeLen(PR49516(1), PR49516(2), 10)
@test sprint(show, srl) == "PR49516(1):PR49516(2):PR49516(19)"
end

@testset "Inline StepRange Construction #49270" begin
Expand Down

0 comments on commit 9201414

Please sign in to comment.