diff --git a/.travis.yml b/.travis.yml index c1d2c46..ca9e59a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,9 @@ language: julia os: - linux -# - osx # backlogged + - osx julia: - - 0.6 - - 0.7 - - nightly + - 1.0 notifications: email: false # uncomment the following lines to override the default test script diff --git a/Project.toml b/Project.toml index ea701c4..d144364 100644 --- a/Project.toml +++ b/Project.toml @@ -1,14 +1,13 @@ name = "NaNMath" uuid = "77ba4419-2d1f-58cd-9bb1-8ffee604a2e3" +repo = "https://github.com/mlubin/NaNMath.jl.git" authors = ["Miles Lubin"] version = "0.3.3" [deps] -Compat = "34da2185-b29b-5c13-b0c7-acf172513d20" [compat] -julia = "0.6, 0.7, 1" -Compat = "0.47, 1, 2, 3" +julia = "1" [extras] Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" diff --git a/README.md b/README.md index 08901df..5c072d9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,4 @@ [![Build Status](https://travis-ci.org/mlubin/NaNMath.jl.svg?branch=master)](https://travis-ci.org/mlubin/NaNMath.jl) -[![NaNMath](http://pkg.julialang.org/badges/NaNMath_0.6.svg)](http://pkg.julialang.org/detail/NaNMath) -[![NaNMath](http://pkg.julialang.org/badges/NaNMath_0.7.svg)](http://pkg.julialang.org/detail/NaNMath) # NaNMath diff --git a/REQUIRE b/REQUIRE deleted file mode 100644 index 67ffea0..0000000 --- a/REQUIRE +++ /dev/null @@ -1,2 +0,0 @@ -julia 0.6 -Compat 0.47 diff --git a/src/NaNMath.jl b/src/NaNMath.jl index 575062a..030e8ad 100644 --- a/src/NaNMath.jl +++ b/src/NaNMath.jl @@ -1,8 +1,6 @@ __precompile__() module NaNMath -using Compat - const libm = Base.libm_name for f in (:sin, :cos, :tan, :asin, :acos, :acosh, :atanh, :log, :log2, :log10, @@ -59,7 +57,7 @@ function sum(x::AbstractArray{T}) where T<:AbstractFloat end if isnan(result) - Compat.@warn "All elements of the array, passed to \"sum\" are NaN!" + @warn "All elements of the array, passed to \"sum\" are NaN!" end return result end diff --git a/test/runtests.jl b/test/runtests.jl index 7be9c3e..6394f78 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,5 +1,5 @@ using NaNMath -using Compat.Test +using Test @test isnan(NaNMath.log(-10)) @test isnan(NaNMath.log1p(-100))