Your test suite just checks whether a quadrilateral has equal sides, but that's not enough to form a square: rhombuses also have equal sides. Therefore, the test suite should also check a solution's angles.
PS: A test case filled with rhombuses and a single square on the curve would be instructional too.
495 Solvers
Number of 1s in the Binary Representation of a Number
359 Solvers
Arrange Vector in descending order
4284 Solvers
Back to basics 21 - Matrix replicating
1059 Solvers
561 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!