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
bf5af5d5
Kaydet (Commit)
bf5af5d5
authored
Tem 08, 2013
tarafından
Ezio Melotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge str.center tests from 3.3.
üst
49fc8ece
f84e01df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
test_unicode.py
Lib/test/test_unicode.py
+9
-0
No files found.
Lib/test/test_unicode.py
Dosyayı görüntüle @
bf5af5d5
...
@@ -663,6 +663,15 @@ class UnicodeTest(string_tests.CommonTest,
...
@@ -663,6 +663,15 @@ class UnicodeTest(string_tests.CommonTest,
self
.
assertEqual
(
'ß'
.
swapcase
(),
'SS'
)
self
.
assertEqual
(
'ß'
.
swapcase
(),
'SS'
)
self
.
assertEqual
(
'
\u1fd2
'
.
swapcase
(),
'
\u0399\u0308\u0300
'
)
self
.
assertEqual
(
'
\u1fd2
'
.
swapcase
(),
'
\u0399\u0308\u0300
'
)
def
test_center
(
self
):
string_tests
.
CommonTest
.
test_center
(
self
)
self
.
assertEqual
(
'x'
.
center
(
2
,
'
\U0010FFFF
'
),
'x
\U0010FFFF
'
)
self
.
assertEqual
(
'x'
.
center
(
3
,
'
\U0010FFFF
'
),
'
\U0010FFFF
x
\U0010FFFF
'
)
self
.
assertEqual
(
'x'
.
center
(
4
,
'
\U0010FFFF
'
),
'
\U0010FFFF
x
\U0010FFFF\U0010FFFF
'
)
def
test_contains
(
self
):
def
test_contains
(
self
):
# Testing Unicode contains method
# Testing Unicode contains method
self
.
assertIn
(
'a'
,
'abdb'
)
self
.
assertIn
(
'a'
,
'abdb'
)
...
...
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