Skip to content

Commit a5a7f0f

Browse files
committed
remove custom exponent from test
1 parent f5a863c commit a5a7f0f

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

tests/test_tensor/test_contract.py

-12
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,6 @@ def test_tensor_contract_strip_exponent():
1717
# test tn.exponent is reinserted with strip exponent
1818
m3, e3 = tn.contract(strip_exponent=True)
1919
assert m3 * 10**e3 == pytest.approx(z0)
20-
# test tn.exponent is not reinserted when specified
21-
z4 = tn.contract(exponent=False)
22-
assert z4 != pytest.approx(z0)
23-
# test tn.exponent is not reinserted when specified with strip exponent
24-
m5, e5 = tn.contract(strip_exponent=True, exponent=False)
25-
assert m5 * 10**e5 != pytest.approx(z0)
26-
# test explicit exponent
27-
z6 = tn.contract(exponent=tn.exponent)
28-
assert z6 == pytest.approx(z0)
29-
# test explicit exponent with strip exponent
30-
m7, e7 = tn.contract(strip_exponent=True, exponent=tn.exponent)
31-
assert m7 * 10**e7 == pytest.approx(z0)
3220

3321

3422
@pytest.mark.parametrize("strip_exponent", [False, True])

0 commit comments

Comments
 (0)