phetsims/quadrilateral

Add unit tests

Closed this issue · 2 comments

From #403, we would like to add unit tests for the QuadrilateralShapeDetection in particular.

I added unit tests for shape detection, and it has been nice to have them while making changes for #398. While not exhaustive it covers one of each shape and the sim is now set up to add more unit tests if we want.

@samreid @matthew-blackman would you like to see anything else here or any other tests?

I read the commits, tested running the unit tests, and I tried disrupting one of the tests to make sure it correctly failed. Everything seems good, nice work, closing.