Skip to content

Commit

Permalink
Export isnumeric (#543)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmkuhn authored and stevengj committed Jun 6, 2018
1 parent 59a67a4 commit 37fb97d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,8 @@ Currently, the `@compat` macro supports the following syntaxes:

* `cfunction` is now `@cfunction` ([#26486]).

* `Unicode.isnumeric` is now available as `isnumeric` ([#25479]).

## New macros

* `@__DIR__` has been added ([#18380])
Expand Down Expand Up @@ -594,6 +596,7 @@ includes this fix. Find the minimum version from there.
[#25402]: https://github.com/JuliaLang/julia/issues/25402
[#25458]: https://github.com/JuliaLang/julia/issues/25458
[#25459]: https://github.com/JuliaLang/julia/issues/25459
[#25479]: https://github.com/JuliaLang/julia/issues/25479
[#25496]: https://github.com/JuliaLang/julia/issues/25496
[#25522]: https://github.com/JuliaLang/julia/issues/25522
[#25544]: https://github.com/JuliaLang/julia/issues/25544
Expand Down
6 changes: 6 additions & 0 deletions src/Compat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1135,6 +1135,12 @@ module Unicode
end
end

# 0.7.0-DEV.3393
@static if VERSION < v"0.7.0-DEV.3393"
import .Unicode.isnumeric
export isnumeric
end

# 0.7.0-DEV.2951
@static if !isdefined(Base, :AbstractDict)
const AbstractDict = Associative
Expand Down
4 changes: 4 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,10 @@ module Test25021
@test Compat.Unicode.normalize("\t\r", stripcc=true) == " "
end

# 0.7.0-DEV.3393
@test !isnumeric('a')
@test isnumeric('1')

# 0.7.0-DEV.2951
@test AbstractDict === (isdefined(Base, :AbstractDict) ? Base.AbstractDict : Base.Associative)

Expand Down

0 comments on commit 37fb97d

Please sign in to comment.