Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
PyPy
pypy
Commits
1cb4d8de7389
Commit
9acd6b83
authored
Mar 03, 2021
by
Carl Friedrich Bolz-Tereick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix incorrect test
parent
d1d9dfa18e8d
Pipeline
#18744
passed with stage
in 7 minutes and 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
rpython/jit/metainterp/optimizeopt/test/test_intbound.py
rpython/jit/metainterp/optimizeopt/test/test_intbound.py
+4
-2
No files found.
rpython/jit/metainterp/optimizeopt/test/test_intbound.py
View file @
1cb4d8de
...
...
@@ -5,7 +5,7 @@ from copy import copy
import
sys
from
rpython.rlib.rarithmetic
import
LONG_BIT
,
ovfcheck
from
hypothesis
import
given
,
strategies
from
hypothesis
import
given
,
strategies
,
example
special_values
=
(
range
(
-
100
,
100
)
+
...
...
@@ -485,10 +485,12 @@ def test_invert_bound_random(t1):
assert
b2
.
contains
(
~
n1
)
@
given
(
bound_with_contained_number
)
@
example
((
IntUpperBound
(
-
100
),
-
sys
.
maxint
-
1
))
def
test_neg_bound_random
(
t1
):
b1
,
n1
=
t1
b2
=
b1
.
neg_bound
()
if
n1
!=
-
sys
.
maxint
-
1
:
assert
b2
.
contains
(
-
n1
)
else
:
assert
not
b2
.
has_lower
assert
not
b1
.
has_lower
assert
not
b2
.
has_upper
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