Skip to content

Commit 3a5eaa6

Browse files
committed
Add tests for #53
1 parent 624022a commit 3a5eaa6

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ContinuumArrays"
22
uuid = "7ae1f121-cc2c-504b-ac30-9b923412ae5c"
3-
version = "0.2.4"
3+
version = "0.2.5"
44

55
[deps]
66
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"
@@ -17,7 +17,7 @@ BandedMatrices = "0.15"
1717
FillArrays = "0.8.2"
1818
IntervalSets = "0.3.2, 0.4, 0.5"
1919
LazyArrays = "0.16"
20-
QuasiArrays = "0.2"
20+
QuasiArrays = "0.2.2"
2121
julia = "1.3"
2222

2323
[extras]

test/runtests.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,18 @@ import LazyArrays: MemoryLayout, ApplyStyle, Applied, colsupport, arguments, App
99
x = Inclusion(-1..1)
1010
@test x[0.1] === 0.1
1111
@test x[0.0] === 0.0
12+
1213
x = Inclusion(-1.0..1)
1314
X = QuasiDiagonal(x)
1415
@test X[-1:0.1:1,-1:0.1:1] == Diagonal(-1:0.1:1)
1516
@test Base.BroadcastStyle(typeof(x)) == LazyQuasiArrayStyle{1}()
1617
@test x .* x isa BroadcastQuasiArray
1718
@test (x.*x)[0.1] == 0.1^2
19+
20+
@test exp.(x)[1.0] == exp(1.0)
21+
@test exp.(-x)[1.0] == exp(-1.0)
22+
@test exp.(x.^2)[1.0] == exp(1.0)
23+
@test exp.(-x.^2/(20/2))[1.0] == exp(-1.0^2/(20/2))
1824
end
1925

2026
@testset "DiracDelta" begin

0 commit comments

Comments
 (0)