Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
ea7b6f6e
Kaydet (Commit)
ea7b6f6e
authored
Agu 15, 2011
tarafından
Ezio Melotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#12266: move the tests in test_unicode.
üst
15d6b65e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
17 deletions
+19
-17
string_tests.py
Lib/test/string_tests.py
+0
-17
test_unicode.py
Lib/test/test_unicode.py
+19
-0
No files found.
Lib/test/string_tests.py
Dosyayı görüntüle @
ea7b6f6e
...
@@ -96,23 +96,6 @@ class CommonTest(unittest.TestCase):
...
@@ -96,23 +96,6 @@ class CommonTest(unittest.TestCase):
self
.
checkequal
(
'Aaaa'
,
'aaaa'
,
'capitalize'
)
self
.
checkequal
(
'Aaaa'
,
'aaaa'
,
'capitalize'
)
self
.
checkequal
(
'Aaaa'
,
'AaAa'
,
'capitalize'
)
self
.
checkequal
(
'Aaaa'
,
'AaAa'
,
'capitalize'
)
# check that titlecased chars are lowered correctly
# \u1ffc is the titlecased char
self
.
checkequal
(
u'
\u1ffc\u1ff3\u1ff3\u1ff3
'
,
u'
\u1ff3\u1ff3\u1ffc\u1ffc
'
,
'capitalize'
)
# check with cased non-letter chars
self
.
checkequal
(
u'
\u24c5\u24e8\u24e3\u24d7\u24de\u24dd
'
,
u'
\u24c5\u24ce\u24c9\u24bd\u24c4\u24c3
'
,
'capitalize'
)
self
.
checkequal
(
u'
\u24c5\u24e8\u24e3\u24d7\u24de\u24dd
'
,
u'
\u24df\u24e8\u24e3\u24d7\u24de\u24dd
'
,
'capitalize'
)
self
.
checkequal
(
u'
\u2160\u2171\u2172
'
,
u'
\u2160\u2161\u2162
'
,
'capitalize'
)
self
.
checkequal
(
u'
\u2160\u2171\u2172
'
,
u'
\u2170\u2171\u2172
'
,
'capitalize'
)
# check with Ll chars with no upper - nothing changes here
self
.
checkequal
(
u'
\u019b\u1d00\u1d86\u0221\u1fb7
'
,
u'
\u019b\u1d00\u1d86\u0221\u1fb7
'
,
'capitalize'
)
self
.
checkraises
(
TypeError
,
'hello'
,
'capitalize'
,
42
)
self
.
checkraises
(
TypeError
,
'hello'
,
'capitalize'
,
42
)
def
test_count
(
self
):
def
test_count
(
self
):
...
...
Lib/test/test_unicode.py
Dosyayı görüntüle @
ea7b6f6e
...
@@ -269,6 +269,25 @@ class UnicodeTest(
...
@@ -269,6 +269,25 @@ class UnicodeTest(
# Surrogates on both sides, no fixup required
# Surrogates on both sides, no fixup required
self
.
assertTrue
(
u'
\ud800\udc02
'
<
u'
\ud84d\udc56
'
)
self
.
assertTrue
(
u'
\ud800\udc02
'
<
u'
\ud84d\udc56
'
)
def
test_capitalize
(
self
):
string_tests
.
CommonTest
.
test_capitalize
(
self
)
# check that titlecased chars are lowered correctly
# \u1ffc is the titlecased char
self
.
checkequal
(
u'
\u1ffc\u1ff3\u1ff3\u1ff3
'
,
u'
\u1ff3\u1ff3\u1ffc\u1ffc
'
,
'capitalize'
)
# check with cased non-letter chars
self
.
checkequal
(
u'
\u24c5\u24e8\u24e3\u24d7\u24de\u24dd
'
,
u'
\u24c5\u24ce\u24c9\u24bd\u24c4\u24c3
'
,
'capitalize'
)
self
.
checkequal
(
u'
\u24c5\u24e8\u24e3\u24d7\u24de\u24dd
'
,
u'
\u24df\u24e8\u24e3\u24d7\u24de\u24dd
'
,
'capitalize'
)
self
.
checkequal
(
u'
\u2160\u2171\u2172
'
,
u'
\u2160\u2161\u2162
'
,
'capitalize'
)
self
.
checkequal
(
u'
\u2160\u2171\u2172
'
,
u'
\u2170\u2171\u2172
'
,
'capitalize'
)
# check with Ll chars with no upper - nothing changes here
self
.
checkequal
(
u'
\u019b\u1d00\u1d86\u0221\u1fb7
'
,
u'
\u019b\u1d00\u1d86\u0221\u1fb7
'
,
'capitalize'
)
def
test_islower
(
self
):
def
test_islower
(
self
):
string_tests
.
MixinStrUnicodeUserStringTest
.
test_islower
(
self
)
string_tests
.
MixinStrUnicodeUserStringTest
.
test_islower
(
self
)
self
.
checkequalnofix
(
False
,
u'
\u1FFc
'
,
'islower'
)
self
.
checkequalnofix
(
False
,
u'
\u1FFc
'
,
'islower'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment