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
de09acf2
Kaydet (Commit)
de09acf2
authored
Şub 12, 2009
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
One more test.
üst
8a882a74
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
test_itertools.py
Lib/test/test_itertools.py
+3
-0
No files found.
Lib/test/test_itertools.py
Dosyayı görüntüle @
de09acf2
...
...
@@ -3,6 +3,7 @@ from test import support
from
itertools
import
*
from
weakref
import
proxy
from
decimal
import
Decimal
from
fractions
import
Fraction
import
sys
import
operator
import
random
...
...
@@ -359,6 +360,8 @@ class TestBasicOps(unittest.TestCase):
self
.
assertEqual
(
take
(
3
,
count
(
2
,
3.25
-
4
j
)),
[
2
,
5.25
-
4
j
,
8.5
-
8
j
])
self
.
assertEqual
(
take
(
3
,
count
(
Decimal
(
'1.1'
),
Decimal
(
'.1'
))),
[
Decimal
(
'1.1'
),
Decimal
(
'1.2'
),
Decimal
(
'1.3'
)])
self
.
assertEqual
(
take
(
3
,
count
(
Fraction
(
2
,
3
),
Fraction
(
1
,
7
))),
[
Fraction
(
2
,
3
),
Fraction
(
17
,
21
),
Fraction
(
20
,
21
)])
self
.
assertEqual
(
repr
(
take
(
3
,
count
(
10
,
2.5
))),
repr
([
10
,
12.5
,
15.0
]))
c
=
count
(
3
,
5
)
self
.
assertEqual
(
repr
(
c
),
'count(3, 5)'
)
...
...
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