Skip to content

Commit 10e044a

Browse files
greimelnalimilan
andauthored
Apply suggestions from code review
Co-Authored-By: Milan Bouchet-Valat <[email protected]>
1 parent 624b724 commit 10e044a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/extras.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ function cut(x::AbstractArray{T, N}, breaks::AbstractVector;
121121
extend::Bool=false,
122122
labels::Union{AbstractVector{<:AbstractString},Function}=default_formatter,
123123
allow_missing::Bool=false) where {T, N}
124-
125124
if !issorted(breaks)
126125
breaks = sort(breaks)
127126
end

test/15_extras.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ end
108108
@test levels(x) == ["[2.0, 3.5)", "[3.5, 5.0]"]
109109
end
110110

111-
@testset "formatter function" begin
111+
@testset "cut with formatter function" begin
112112
my_formatter(from, to, i; closed) = "$i: $from -- $to"
113113

114114
x = 0.15:0.20:0.95

0 commit comments

Comments
 (0)