93
93
alower= [' a' , ' d' , ' j' , ' y' , ' z' ]
94
94
ulower= [' α' , ' β' , ' γ' , ' δ' , ' ф' , ' я' ]
95
95
for c in vcat (alower,ulower)
96
- @test islower (c) == true
97
- @test isupper (c) == false
96
+ @test islowercase (c) == true
97
+ @test isuppercase (c) == false
98
98
@test isdigit (c) == false
99
99
@test isnumeric (c) == false
100
100
end
103
103
uupper= [' Δ' , ' Γ' , ' Π' , ' Ψ' , ' Dž' , ' Ж' , ' Д' ]
104
104
105
105
for c in vcat (aupper,uupper)
106
- @test islower (c) == false
107
- @test isupper (c) == true
106
+ @test islowercase (c) == false
107
+ @test isuppercase (c) == true
108
108
@test isdigit (c) == false
109
109
@test isnumeric (c) == false
110
110
end
201
201
@test ! all (isspace," ΣβΣβ" )
202
202
@test all (isalpha," ΣβΣβ" )
203
203
@test all (isprint," ΣβΣβ" )
204
- @test ! all (isupper ," ΣβΣβ" )
205
- @test ! all (islower ," ΣβΣβ" )
204
+ @test ! all (isuppercase ," ΣβΣβ" )
205
+ @test ! all (islowercase ," ΣβΣβ" )
206
206
@test ! all (isnumeric," ΣβΣβ" )
207
207
@test ! all (iscntrl," ΣβΣβ" )
208
208
@test ! all (ispunct," ΣβΣβ" )
@@ -329,17 +329,17 @@ end
329
329
@test collect (g) == [" 1" ," 2" ," 3" ," α" ," 5" ]
330
330
end
331
331
332
- @testset " ucfirst/lcfirst " begin
333
- @test ucfirst (" Hola" )== " Hola"
334
- @test ucfirst (" hola" )== " Hola"
335
- @test ucfirst (" " )== " "
336
- @test ucfirst (" *" )== " *"
337
- @test ucfirst (" DŽxx" ) == ucfirst (" džxx" ) == " Džxx"
338
-
339
- @test lcfirst (" Hola" )== " hola"
340
- @test lcfirst (" hola" )== " hola"
341
- @test lcfirst (" " )== " "
342
- @test lcfirst (" *" )== " *"
332
+ @testset " uppercasefirst/lowercasefirst " begin
333
+ @test uppercasefirst (" Hola" )== " Hola"
334
+ @test uppercasefirst (" hola" )== " Hola"
335
+ @test uppercasefirst (" " )== " "
336
+ @test uppercasefirst (" *" )== " *"
337
+ @test uppercasefirst (" DŽxx" ) == uppercasefirst (" džxx" ) == " Džxx"
338
+
339
+ @test lowercasefirst (" Hola" )== " hola"
340
+ @test lowercasefirst (" hola" )== " hola"
341
+ @test lowercasefirst (" " )== " "
342
+ @test lowercasefirst (" *" )== " *"
343
343
end
344
344
345
345
@testset " issue #11482" begin
@@ -355,17 +355,17 @@ end
355
355
@test lowercase (' \U 118bf' ) == ' \U 118df'
356
356
@test uppercase (' \U 1044d' ) == ' \U 10425'
357
357
end
358
- @testset " ucfirst/lcfirst " begin
359
- @test ucfirst (" Abc" ) == " Abc"
360
- @test ucfirst (" abc" ) == " Abc"
361
- @test lcfirst (" ABC" ) == " aBC"
362
- @test lcfirst (" aBC" ) == " aBC"
363
- @test ucfirst (GenericString (" " )) == " "
364
- @test lcfirst (GenericString (" " )) == " "
365
- @test ucfirst (GenericString (" a" )) == " A"
366
- @test lcfirst (GenericString (" A" )) == " a"
367
- @test lcfirst (GenericString (" a" )) == " a"
368
- @test ucfirst (GenericString (" A" )) == " A"
358
+ @testset " uppercasefirst/lowercasefirst " begin
359
+ @test uppercasefirst (" Abc" ) == " Abc"
360
+ @test uppercasefirst (" abc" ) == " Abc"
361
+ @test lowercasefirst (" ABC" ) == " aBC"
362
+ @test lowercasefirst (" aBC" ) == " aBC"
363
+ @test uppercasefirst (GenericString (" " )) == " "
364
+ @test lowercasefirst (GenericString (" " )) == " "
365
+ @test uppercasefirst (GenericString (" a" )) == " A"
366
+ @test lowercasefirst (GenericString (" A" )) == " a"
367
+ @test lowercasefirst (GenericString (" a" )) == " a"
368
+ @test uppercasefirst (GenericString (" A" )) == " A"
369
369
end
370
370
@testset " titlecase" begin
371
371
@test titlecase (' lj' ) == ' Lj'
0 commit comments