update black to 22.1.0
This commit is contained in:
parent
c2e49a2b4c
commit
3ed0df1169
|
@ -40,7 +40,7 @@ def fmt_rust(session: nox.Session):
|
||||||
|
|
||||||
@nox.session(name="fmt-py")
|
@nox.session(name="fmt-py")
|
||||||
def fmt_py(session: nox.Session):
|
def fmt_py(session: nox.Session):
|
||||||
session.install("black==21.12b0")
|
session.install("black==22.1.0")
|
||||||
session.run("black", ".", "--check")
|
session.run("black", ".", "--check")
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -3,14 +3,14 @@ from hypothesis import strategies as st
|
||||||
|
|
||||||
from pyo3_pytests import othermod
|
from pyo3_pytests import othermod
|
||||||
|
|
||||||
INTEGER32_ST = st.integers(min_value=(-(2 ** 31)), max_value=(2 ** 31 - 1))
|
INTEGER32_ST = st.integers(min_value=(-(2**31)), max_value=(2**31 - 1))
|
||||||
USIZE_ST = st.integers(min_value=othermod.USIZE_MIN, max_value=othermod.USIZE_MAX)
|
USIZE_ST = st.integers(min_value=othermod.USIZE_MIN, max_value=othermod.USIZE_MAX)
|
||||||
|
|
||||||
|
|
||||||
@given(x=INTEGER32_ST)
|
@given(x=INTEGER32_ST)
|
||||||
def test_double(x):
|
def test_double(x):
|
||||||
expected = x * 2
|
expected = x * 2
|
||||||
assume(-(2 ** 31) <= expected <= (2 ** 31 - 1))
|
assume(-(2**31) <= expected <= (2**31 - 1))
|
||||||
assert othermod.double(x) == expected
|
assert othermod.double(x) == expected
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue