File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ using TimeseriesSurrogates
3
3
ENV [" GKSwstype" ] = " 100"
4
4
5
5
ts = cumsum (randn (1000 ))
6
+ ts_nan = cumsum (randn (100 ))
7
+ ts_nan[1 ] = NaN
6
8
7
9
@testset " Constrained surrogates" begin
8
10
@testset " Random shuffle" begin
@@ -29,6 +31,7 @@ ts = cumsum(randn(1000))
29
31
@test length (ts) == length (surrogate)
30
32
# @test all(ts .!= surrogate)
31
33
@test all (sort (ts) .== sort (surrogate))
34
+ @test_throws DomainError aaft (ts_nan)
32
35
end
33
36
34
37
@testset " IAAFT" begin
@@ -44,6 +47,7 @@ ts = cumsum(randn(1000))
44
47
@test length (ts) == length (surrogates[1 ])
45
48
# @test all(ts .!= surrogates[end])
46
49
@test all (sort (ts) .== sort (surrogates[end ]))
50
+ @test_throws DomainError iaaft (ts_nan)
47
51
end
48
52
49
53
@testset " WIAAFT" begin
You can’t perform that action at this time.
0 commit comments