Skip to content

Commit 88eddfa

Browse files
committed
Add DSP tests
1 parent 1efbdbb commit 88eddfa

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

Project.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1010

1111
[compat]
1212
Aqua = "0.5, 0.6"
13+
DSP = "0.7"
1314
julia = "1.6"
1415

1516
[extras]
1617
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
1718
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
19+
DSP = "717857b8-e6f2-59f4-9121-6e50c889abd2"
1820
ReverseDiff = "37e2e3b7-166d-5795-8a7a-e32c996b4267"
1921
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
2022
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2123

2224
[targets]
23-
test = ["Aqua", "Test", "Base64", "ReverseDiff", "StaticArrays"]
25+
test = ["Aqua", "Test", "Base64", "DSP", "ReverseDiff", "StaticArrays"]

test/runtests.jl

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
using FillArrays, LinearAlgebra, SparseArrays, StaticArrays, ReverseDiff, Random, Base64, Test, Statistics
1+
using Base64
2+
using DSP
3+
using FillArrays
4+
using LinearAlgebra
5+
using Random
6+
using ReverseDiff
7+
using SparseArrays
8+
using StaticArrays
9+
using Statistics
10+
using Test
11+
212
import FillArrays: AbstractFill, RectDiagonal, SquareEye
313

414
using Aqua
@@ -2176,3 +2186,9 @@ end
21762186
@test ReverseDiff.gradient(x -> sum(abs2.((Zeros{eltype(x)}(5) .+ zeros(5)) ./ x)), rand(5)) == zeros(5)
21772187
@test ReverseDiff.gradient(x -> sum(abs2.((zeros(5) .+ Zeros{eltype(x)}(5)) ./ x)), rand(5)) == zeros(5)
21782188
end
2189+
2190+
@testset "DSP" begin
2191+
@test conv(Fill(2, 3), Ones(4)) == conv(fill(2, 3), ones(4))
2192+
@test conv(Fill(2, 3), ones(4)) == conv(fill(2, 3), ones(4))
2193+
@test conv(fill(2, 3), Ones(4)) == conv(fill(2, 3), ones(4))
2194+
end

0 commit comments

Comments
 (0)