Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-Authored-By: Milan Bouchet-Valat <nalimilan@club.fr>
  • Loading branch information
greimel and nalimilan authored Sep 18, 2019
1 parent e90a02f commit ad47e03
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/15_extras.jl
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,11 @@ end
@testset "formatter function" begin
my_formatter(from, to, i; extend) = "$i: $from -- $to"

x = collect(0.15:0.20:0.95)
x = 0.15:0.20:0.95
p = [0, 0.4, 0.8, 1.0]

@test cut(x, p, labels=my_formatter2) == ["1: 0.0 -- 0.4", "1: 0.0 -- 0.4", "2: 0.4 -- 0.8", "2: 0.4 -- 0.8", "3: 0.8 -- 1.0"]
@test cut(x, p, labels=my_formatter2) ==
["1: 0.0 -- 0.4", "1: 0.0 -- 0.4", "2: 0.4 -- 0.8", "2: 0.4 -- 0.8", "3: 0.8 -- 1.0"]
end

end

0 comments on commit ad47e03

Please sign in to comment.