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
3e0bafef
Kaydet (Commit)
3e0bafef
authored
Ara 20, 2009
tarafından
Mark Dickinson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix for consistency with py3k keyword-only version of assertAlmostEqual
üst
1d2ae215
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
test_cmath.py
Lib/test/test_cmath.py
+4
-4
No files found.
Lib/test/test_cmath.py
Dosyayı görüntüle @
3e0bafef
...
@@ -130,10 +130,10 @@ class CMathTests(unittest.TestCase):
...
@@ -130,10 +130,10 @@ class CMathTests(unittest.TestCase):
def
test_constants
(
self
):
def
test_constants
(
self
):
e_expected
=
2.71828182845904523536
e_expected
=
2.71828182845904523536
pi_expected
=
3.14159265358979323846
pi_expected
=
3.14159265358979323846
self
.
assertAlmostEqual
(
cmath
.
pi
,
pi_expected
,
9
,
self
.
assertAlmostEqual
(
cmath
.
pi
,
pi_expected
,
places
=
9
,
"cmath.pi is
%
s; should be
%
s"
%
(
cmath
.
pi
,
pi_expected
))
msg
=
"cmath.pi is
%
s; should be
%
s"
%
(
cmath
.
pi
,
pi_expected
))
self
.
assertAlmostEqual
(
cmath
.
e
,
e_expected
,
9
,
self
.
assertAlmostEqual
(
cmath
.
e
,
e_expected
,
places
=
9
,
"cmath.e is
%
s; should be
%
s"
%
(
cmath
.
e
,
e_expected
))
msg
=
"cmath.e is
%
s; should be
%
s"
%
(
cmath
.
e
,
e_expected
))
def
test_user_object
(
self
):
def
test_user_object
(
self
):
# Test automatic calling of __complex__ and __float__ by cmath
# Test automatic calling of __complex__ and __float__ by cmath
...
...
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