Skip to content

test: check that l-shape fitting finds a known rectangle - #280

Merged
ShisatoYano merged 1 commit into
ShisatoYano:mainfrom
tridev-tej:fix-issue-276
Nov 24, 2026
Merged

ShisatoYano merged 1 commit into
ShisatoYano:mainfrom
tridev-tej:fix-issue-276

Conversation

@tridev-tej

Copy link
Copy Markdown
Contributor

Summary

Adds unit tests for LShapeFittingDetector: points on two sides of a 4 m x 2 m rectangle rotated 30 deg should give one rectangle with that direction and size. Tests only, no src/ change. Part of #103.

How I checked it works

pytest test/test_l_shape_fitting_detector.py passes, and fails when I negate the variance criterion or skip cluster merging. . run_test_suites.sh passes.

Fixes #276

@ShisatoYano

Copy link
Copy Markdown
Owner

Thanks for this, @tridev-tej! Next time, please comment on the issue to claim it before you start, so two people don't work on the same one (we're writing this rule down in #267). The CI runs of a first-time contributor need my approval, so they'll start after a quick look. I'll review the tests within a few days.

@ShisatoYano
ShisatoYano merged commit b112d39 into ShisatoYano:main Nov 24, 2026
4 checks passed
@ShisatoYano ShisatoYano added the announce Candidate for a project update announcement label Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

announce Candidate for a project update announcement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unit tests: L-shape fitting finds a known rectangle

2 participants