-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from JuliaDSP/gfa/julia-compat-update
Julia compatibility update
- Loading branch information
Showing
11 changed files
with
96 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
julia 0.6 | ||
Reexport 0.0.3 | ||
DSP 0.3.4 | ||
Compat 0.65 | ||
Compat 0.70 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,33 @@ | ||
using Wavelets | ||
using Base.Test | ||
using Compat.Test | ||
using Compat.LinearAlgebra | ||
using Compat.DelimitedFiles | ||
using Compat: ComplexF64, copyto!, range | ||
import Compat | ||
|
||
# modified from Base.Test | ||
function test_vecnorm_eq(va, vb, Eps, astr, bstr) | ||
function vecnorm_eq(va, vb, Eps, astr="a", bstr="b") | ||
if length(va) != length(vb) | ||
error("lengths of ", astr, " and ", bstr, " do not match: ", | ||
"\n ", astr, " (length $(length(va))) = ", va, | ||
"\n ", bstr, " (length $(length(vb))) = ", vb) | ||
#error("lengths of ", astr, " and ", bstr, " do not match: ", | ||
# "\n ", astr, " (length $(length(va))) = ", va, | ||
# "\n ", bstr, " (length $(length(vb))) = ", vb) | ||
return false | ||
end | ||
diff = vecnorm(va - vb) | ||
|
||
if !isnan(Eps) && !(diff <= Eps) | ||
sdiff = string("|", astr, " - ", bstr, "| <= ", Eps) | ||
error("assertion failed: ", sdiff, | ||
"\n difference = ", diff, " > ", Eps) | ||
diff = Compat.norm(va - vb) | ||
if !isnan(Eps) && diff > Eps | ||
#sdiff = string("|", astr, " - ", bstr, "| <= ", Eps) | ||
#error("assertion failed: ", sdiff, | ||
# "\n difference = ", diff, " > ", Eps) | ||
return false | ||
end | ||
return true | ||
end | ||
macro test_vecnorm_eq_eps(a, b, c) | ||
:(test_vecnorm_eq($(esc(a)), $(esc(b)), $(esc(c)), $(string(a)), $(string(b)))) | ||
macro vecnorm_eq_eps(a, b, c) | ||
:(vecnorm_eq($(esc(a)), $(esc(b)), $(esc(c)), $(string(a)), $(string(b)))) | ||
end | ||
|
||
|
||
include("util.jl") | ||
include("transforms.jl") | ||
include("threshold.jl") | ||
include("plot.jl") | ||
|
||
print("\ntesting: success\n") | ||
@testset "Util" begin include("util.jl") end | ||
@testset "Transforms" begin include("transforms.jl") end | ||
@testset "Threshold" begin include("threshold.jl") end | ||
@testset "Plot" begin include("plot.jl") end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.