Skip to content

Commit

Permalink
Update runtests.jl for Julia 0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano committed Aug 20, 2017
1 parent bd61c1c commit ca22a23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
julia 0.6.0-rc1
julia 0.6.0
FFTW 0.0.1
Measurements 0.2.0
8 changes: 4 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using LombScargle
using Measurements
using Measurements, FFTW
using Base.Test

Threads.nthreads() > 1 && (FFTW.set_num_threads(2); info("Multi-threading enabled"))
Expand Down Expand Up @@ -31,7 +31,7 @@ pgram4 = @inferred(lombscargle(LombScargle.plan(t, s, fast = false, center_data=
# coverage. "autofrequency" function is tested below.
prandom1 = lombscargle(trandom, srandom, frequencies=freqs, fit_mean=false)
prandom2 = lombscargle(trandom, srandom, frequencies=freqs, fit_mean=true)
@test freqpower(pgram1)[2] periodpower(pgram2)[2] atol = 5e-7
@test freqpower(pgram1)[2] periodpower(pgram2)[2] atol = 6e-7
@testset "Infinities" begin
# Make sure there are no infinities in `pgram1'. It seems to work only on
# 64-bit systems.
Expand All @@ -40,8 +40,8 @@ pgram4 = @inferred(lombscargle(LombScargle.plan(t, s, fast = false, center_data=
end

@testset "fit_mean and center_data" begin
@test power(pgram1) power(pgram2) atol = 4e-7
@test power(pgram3) power(pgram4) atol = 4e-7
@test power(pgram1) power(pgram2) atol = 5e-7
@test power(pgram3) power(pgram4) atol = 5e-7
end

# Test the values in order to prevent wrong results in both algorithms
Expand Down

0 comments on commit ca22a23

Please sign in to comment.