Skip to content

Commit 89c1e3d

Browse files
committed
Drop compat code for isuppercase and friends from #516
1 parent 7e5b225 commit 89c1e3d

File tree

4 files changed

+8
-19
lines changed

4 files changed

+8
-19
lines changed

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,6 @@ Currently, the `@compat` macro supports the following syntaxes:
112112

113113
* `findin(a, b)` is now `findall(in(b), a)` ([#24673]).
114114

115-
* `isupper`, `islower`, `ucfirst` and `lcfirst` are now `isuppercase`, `islowercase`,
116-
`uppercasefirst` and `lowercasefirst` ([#26442]).
117-
118115
* `Compat.split` and `Compat.rsplit` accept `keepempty` keyword argument
119116
if `splitter` is given as second argument ([#26634])
120117

src/Compat.jl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,6 @@ end
7676
end
7777
end
7878

79-
if VERSION < v"0.7.0-DEV.4585"
80-
export isuppercase, islowercase, uppercasefirst, lowercasefirst
81-
const isuppercase = isupper
82-
const islowercase = islower
83-
const uppercasefirst = ucfirst
84-
const lowercasefirst = lcfirst
85-
end
86-
8779
if VERSION < v"0.7.0-DEV.4064"
8880
for f in (:mean, :median, :var, :varm, :std, :cov, :cor)
8981
@eval import .Statistics: $f # compatibility with old Compat versions

test/old.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,3 +859,11 @@ end
859859

860860
# 0.7.0-DEV.3972
861861
@test Compat.indexin([1, 2], [1, 0, 1]) == [1, nothing]
862+
863+
# 0.7.0-DEV.4585
864+
@test isuppercase('A')
865+
@test !isuppercase('a')
866+
@test islowercase('a')
867+
@test !islowercase('A')
868+
@test uppercasefirst("qwerty") == "Qwerty"
869+
@test lowercasefirst("Qwerty") == "qwerty"

test/runtests.jl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,6 @@ if VERSION < v"0.7.0-DEV.4592"
8989
@test findall(occursin([1, 2]), [1]) == [1]
9090
end
9191

92-
# 0.7.0-DEV.4585
93-
@test isuppercase('A')
94-
@test !isuppercase('a')
95-
@test islowercase('a')
96-
@test !islowercase('A')
97-
@test uppercasefirst("qwerty") == "Qwerty"
98-
@test lowercasefirst("Qwerty") == "qwerty"
99-
10092
# 0.7.0-DEV.4064
10193
# some tests are behind a version check below because Julia gave
10294
# the wrong result between 0.7.0-DEV.3262 and 0.7.0-DEV.4646

0 commit comments

Comments
 (0)