Skip to content

Commit

Permalink
Export isnumeric
Browse files Browse the repository at this point in the history
  • Loading branch information
jmkuhn committed May 15, 2018
1 parent 9ae1261 commit 798b093
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 @@ -403,6 +403,8 @@ Currently, the `@compat` macro supports the following syntaxes:
* `isupper`, `islower`, `ucfirst` and `lcfirst` are now `isuppercase`, `islowercase`,
`uppercasefirst` and `lowercasefirst` ([#26442]).

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

## New macros

* `@__DIR__` has been added ([#18380])
Expand Down Expand Up @@ -588,6 +590,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 @@ -1096,6 +1096,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 @@ -1067,6 +1067,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 798b093

Please sign in to comment.