Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
971e0690
Commit
971e0690
authored
Aug 23, 2001
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove test_long's expected-output file.
parent
c266bb05
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
Lib/test/output/test_long
Lib/test/output/test_long
+0
-5
Lib/test/test_long.py
Lib/test/test_long.py
+8
-4
No files found.
Lib/test/output/test_long
deleted
100644 → 0
View file @
c266bb05
test_long
long / * % divmod
long bit-operation identities
long str/hex/oct/atol
long miscellaneous operations
Lib/test/test_long.py
View file @
971e0690
...
@@ -88,7 +88,8 @@ def test_division_2(x, y):
...
@@ -88,7 +88,8 @@ def test_division_2(x, y):
check
(
y
<
r
<=
0
,
"bad mod from divmod on"
,
x
,
y
)
check
(
y
<
r
<=
0
,
"bad mod from divmod on"
,
x
,
y
)
def
test_division
(
maxdigits
=
MAXDIGITS
):
def
test_division
(
maxdigits
=
MAXDIGITS
):
print
"long / * % divmod"
if
verbose
:
print
"long / * % divmod"
digits
=
range
(
1
,
maxdigits
+
1
)
digits
=
range
(
1
,
maxdigits
+
1
)
for
lenx
in
digits
:
for
lenx
in
digits
:
x
=
getran
(
lenx
)
x
=
getran
(
lenx
)
...
@@ -149,7 +150,8 @@ def test_bitop_identities_3(x, y, z):
...
@@ -149,7 +150,8 @@ def test_bitop_identities_3(x, y, z):
"x | (y & z) != (x | y) & (x | z) for"
,
x
,
y
,
z
)
"x | (y & z) != (x | y) & (x | z) for"
,
x
,
y
,
z
)
def
test_bitop_identities
(
maxdigits
=
MAXDIGITS
):
def
test_bitop_identities
(
maxdigits
=
MAXDIGITS
):
print
"long bit-operation identities"
if
verbose
:
print
"long bit-operation identities"
for
x
in
special
:
for
x
in
special
:
test_bitop_identities_1
(
x
)
test_bitop_identities_1
(
x
)
digits
=
range
(
1
,
maxdigits
+
1
)
digits
=
range
(
1
,
maxdigits
+
1
)
...
@@ -197,7 +199,8 @@ def test_format_1(x):
...
@@ -197,7 +199,8 @@ def test_format_1(x):
got
,
"but expected"
,
expected
,
"for"
,
x
)
got
,
"but expected"
,
expected
,
"for"
,
x
)
def
test_format
(
maxdigits
=
MAXDIGITS
):
def
test_format
(
maxdigits
=
MAXDIGITS
):
print
"long str/hex/oct/atol"
if
verbose
:
print
"long str/hex/oct/atol"
for
x
in
special
:
for
x
in
special
:
test_format_1
(
x
)
test_format_1
(
x
)
for
i
in
range
(
10
):
for
i
in
range
(
10
):
...
@@ -208,7 +211,8 @@ def test_format(maxdigits=MAXDIGITS):
...
@@ -208,7 +211,8 @@ def test_format(maxdigits=MAXDIGITS):
# ----------------------------------------------------------------- misc
# ----------------------------------------------------------------- misc
def
test_misc
(
maxdigits
=
MAXDIGITS
):
def
test_misc
(
maxdigits
=
MAXDIGITS
):
print
"long miscellaneous operations"
if
verbose
:
print
"long miscellaneous operations"
import
sys
import
sys
# check the extremes in int<->long conversion
# check the extremes in int<->long conversion
...
...
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