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.
4625 Solvers
Who knows the last digit of pi?
560 Solvers
Find files with extension ext in the current directory
27 Solvers
Calculate the Hamming distance between two strings
179 Solvers
Detect a number and replace with two NaN's
178 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!