File: test_pack.pyc

package info (click to toggle)
python-gmpy2 2.1.0~a4-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,048 kB
  • sloc: ansic: 24,051; python: 325; makefile: 117
file content (20 lines) | stat: -rw-r--r-- 1,205 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

NYc@sddlmZddlZddZedkrddlZyeeejdZ	Wn
dZ	nXe
de
dee	e
dndS(	i(tprint_functionNic	Cstjd}yxt|D]}x|d
D]t}tj||}xYtd
td|D]?}tj||}tj||}||kr]tq]q]Wq,WqWtSWntk
rt	SXdS(s!Test gmpy2.pack and gmpy2.unpack.i*i
ii<iiii'iiiN(i
ii<iiii'i(
tgmpy2trandom_statetrangetmpz_rrandombtmaxtunpacktpackt
ValueErrortTruetFalse(trepeattrtcountertttvtbttemptu((s(/home/case/github/gmpy/test/test_pack.pyttests

t__main__s1Testing pack/unpack for a large number of values.s!This test may take a few minutes.sTest successful.(t
__future__RRRt__name__tsystabstinttargvRtprint(((s(/home/case/github/gmpy/test/test_pack.pyt<module>s