Skip to content

tests: Improve comparison of extents

Jean Felder requested to merge test-compare-extent into main

What does this MR do?

Context

define compare_rectangles() and use a tolerance to compare the coordinates of the extents. This way, the tests are more reliable as they do not depend of some floating point arithmetic issue.


Checklists

Author's checklist

  • I've read the contribution guidelines and affirm:
    • my branch has been created from main
    • if the code is not completely achieved, I apply the Draft/WIP prefix
    • the DOD is satisfied specially tests
  • assign myself (the MR creator will automatically be assigned)
  • the box Delete source branch when merge request is accepted. is checked

Reviewer's checklist

  • assign yourself as Reviewer and remember that others developers can comment too
Edited by Jean Felder

Merge request reports