Leaflet.PolylineDecorator icon indicating copy to clipboard operation
Leaflet.PolylineDecorator copied to clipboard

Add a unit test suite

Open bbecquet opened this issue 7 years ago • 1 comments

Should have done it a long time ago… Will be useful for non-regression and the myriad of edge cases.

Some things to test, not exhaustive:

  • [ ] support of every form of polyline/polygon/multi-poly*
  • [x] parsing of offset/repeat options
  • [x] projection algorithm:
    • negative, 0, 1, and > 1 offsets
    • 0 repeat
    • 0-length polylines
    • horizontal and vertical segments
    • correct number of symbols projected
    • correct angle

bbecquet avatar Aug 30 '17 10:08 bbecquet

Mostly done since https://github.com/bbecquet/Leaflet.PolylineDecorator/releases/tag/v1.4.0

bbecquet avatar Sep 06 '17 20:09 bbecquet