Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unicode-compliant islower/uppercase #38574

Merged
merged 4 commits into from
Dec 18, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
don't test isletter for non-L* letters
  • Loading branch information
stevengj committed Dec 16, 2020
commit a9927872e7f54f80870bc28c16a0c34acee3029e
8 changes: 4 additions & 4 deletions stdlib/Unicode/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,18 @@ end

@testset "#5939 uft8proc character predicates" begin
alower=['a', 'd', 'j', 'y', 'z']
ulower=['α', 'β', 'γ', 'δ', 'ф', 'я', 'ª']
for c in vcat(alower,ulower)
ulower=['α', 'β', 'γ', 'δ', 'ф', 'я']
for c in vcat(alower,ulower,['ª'])
@test islowercase(c) == true
@test isuppercase(c) == false
@test isdigit(c) == false
@test isnumeric(c) == false
end

aupper=['A', 'D', 'J', 'Y', 'Z']
uupper= ['Δ', 'Γ', 'Π', 'Ψ', 'Ж', 'Д', 'Ⓐ']
uupper= ['Δ', 'Γ', 'Π', 'Ψ', 'Ж', 'Д']

for c in vcat(aupper,uupper)
for c in vcat(aupper,uupper,['Ⓐ'])
@test islowercase(c) == false
@test isuppercase(c) == true
@test isdigit(c) == false
Expand Down