Skip to content

Commit

Permalink
Export isnumeric
Browse files Browse the repository at this point in the history
  • Loading branch information
jmkuhn authored and ararslan committed May 30, 2018
1 parent aa24418 commit 6e27d6f
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 @@ -413,6 +413,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 @@ -595,6 +597,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 @@ -1084,6 +1084,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 @@ -1022,6 +1022,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 6e27d6f

Please sign in to comment.