Current File : //opt/imh-python/lib/python2.7/test/test_fpformat.pyc
�
��Wc@s�dZddlmZmZddlZedde�Zejejej	ZZZ	e
d�Zdejfd��YZ
d	�Zed
kr�e�ndS(s0
   Tests for fpformat module
   Nick Mathewson
i����(trun_unittestt
import_moduleNtfpformatt
deprecatedttFpformatTestcBs5eZd�Zd�Zd�Zd�Zd�ZRS(cCsWt||�}t|t�r-t|�}nd|t|�f}|j||�dS(Ns%.*f(tfixt
isinstancet
StringTypetreprtfloattassertEqual(tselftntdigitstresulttexpected((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_fpformat.pytcheckFixs
cCs�t||�}t|t�r-t|�}nd|t|�f}|jd�\}}t|�dkr�|dd|d}nd||f}|j||�dS(Ns%.*eteiit0is%se%s(tsciRRR	R
tsplittlenR(RR
RRRtnumtexp((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_fpformat.pytcheckSciscCs>|jtddd�d�|jtddd�d�dS(NgY@is33.333s
3.333e+001(RRR(R((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_fpformat.pyttest_basic_cases,scCs�x�td�D]w}xnddddddddfD]L}xC|d||d|fD]&}|j||�|j||�qVWq4Wq
WdS(	Nig@�@ii�g����Mb`?g�?g _�Bg�(trangeRR(RtdtvaltrealVal((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_fpformat.pyttest_reasonable_values0s
'"cCs�|jtdd�ddd�|jtdddd�d�d}|jt|d	�|�yt|d	�Wntk
r�nX|jd
�dS(Ng�?i�s1.Rt1is1e+1000sThroatwobbler Mangrovei
sNo exception on non-numeric sci(RRRt
NotANumbertfail(Rtyacht((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_fpformat.pyttest_failing_values7s!!
(t__name__t
__module__RRRRR$(((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_fpformat.pyRs
		
		cCstt�dS(N(RR(((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_fpformat.pyt	test_mainGst__main__(t__doc__ttest.test_supportRRtunittesttTrueRRRR!ttypeRtTestCaseRR'R%(((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_fpformat.pyt<module>s2