@ParameterizedTest
  @CsvSource({
    "true,true,-1,-1,257,257",
    "true,true,-5,-5,260,260",
    "false,false,-1,-1,254,254",
    "true,false,0,-1,257,257",
    "true,false,-1,0,257,257",
    "true,false,-1,-1,256,257",
    "true,false,-1,-1,257,256",

    "false,false,0,0,1,1",
    "false,false,1,1,2,2",
    "false,false,1,1,2,2",

    "false,false,-10,-10,-5,-5",
    "false,false,260,-10,270,5",
    "false,false,-10,260,-5,270",
    "false,false,260,260,270,270",

    "true,false,1,-1,257,257",
    "true,false,1,-1,255,257",
    "false,false,1,-1,255,255",
  })
  void testRectangleIsFillOrEdge(boolean isFillOrEdge, boolean isFill, double x1, double y1, double x2, double y2) {
    assertIsFillOrEdge(isFillOrEdge, isFill, rectangle(x1, y1, x2, y2));
  }
This class is copied from
https://github.com/ElectronicChartCentre/java-vector-tile/blob/master/src/test/java/no/ecc/vectortile/VectorTileEncoderTest.java
and modified based on the changes in VectorTileEncoder, and adapted to junit 5.
planetiler-core/src/test/java/com/onthegomap/planetiler/VectorTileTest.java