Skip to content

Commit ad47e03

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

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/15_extras.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,11 @@ end
111111
@testset "formatter function" begin
112112
my_formatter(from, to, i; extend) = "$i: $from -- $to"
113113

114-
x = collect(0.15:0.20:0.95)
114+
x = 0.15:0.20:0.95
115115
p = [0, 0.4, 0.8, 1.0]
116116

117-
@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"]
117+
@test cut(x, p, labels=my_formatter2) ==
118+
["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"]
118119
end
119120

120121
end

0 commit comments

Comments
 (0)