We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3aaa850 commit fc628f4Copy full SHA for fc628f4
src/findpeaks.jl
@@ -25,7 +25,7 @@ Macro specific to findpeaks function."
25
macro on_empty_return(peaks, x)
26
quote
27
if isempty($(esc(peaks)))
28
- return (empty($(esc(x))), empty($(esc(x)), PeakInfo))
+ return ((), ())
29
end
30
31
test/findpeaks.jl
@@ -104,13 +104,13 @@ end
104
x1 = Int64[]
105
106
@test isempty(findpeaks(y1)[1])
107
- @test findpeaks(y1, x1)[1] == empty(x1)
+ @test findpeaks(y1, x1)[1] == ()
108
109
y2 = Integer[]
110
x2 = String[]
111
112
@test isempty(findpeaks(y2)[1])
113
- @test findpeaks(y2, x2)[1] == empty(x2)
+ @test findpeaks(y2, x2)[1] == ()
114
115
116
@testset "$NAME Non-equal data lengths" begin
0 commit comments