Skip to content

fix(test): change float comparison equality strictness of copies

Description

Float numbers may lose precision when using arithmetic operations on them, which is why, in order to check if two floats are equal, they are typically compared with a margin of error. However, there mustn't be any error of that kind when the float value is copied, since no arithmetic operations are used. This MR will impose stricter equality for floats wherever it is relevant.

Closes #789 (closed)

How to test it?

Run the unit tests, they should still pass.

Merge request reports