Closed thisac closed 3 years ago
Merging #45 (d944105) into master (0d9c3b2) will not change coverage. The diff coverage is
100.00%
.
@@ Coverage Diff @@
## master #45 +/- ##
=======================================
Coverage 97.17% 97.17%
=======================================
Files 12 12
Lines 1914 1914
=======================================
Hits 1860 1860
Misses 54 54
Impacted Files | Coverage Δ | |
---|---|---|
blackbird_python/blackbird/tests/test_auxiliary.py | 100.00% <100.00%> (ø) |
|
blackbird_python/blackbird/tests/test_listener.py | 100.00% <100.00%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 0d9c3b2...d944105. Read the comment docs.
On some computers precision issues turn up causing some tests to fail.
As noted in #44, it e.g. happens on aarch64 systems for the
test_auxiliary.TestExpression.test_brackets
test. It also seems to be the case that thetest_auxiliary.TestFunction.test_function_arccos
fails on the Mac M1 architecture. The latter is due to the lvalue being complex while the rvalue is not (e.g.np.arccos(0.543)
is not equal tonp.arccos(0.543 + 0j)
)Changes: All tests that are comparing either floats/complex or mathematical statements are changed to use
isclose
orallclose
instead of comparing with==
.