trase icon indicating copy to clipboard operation
trase copied to clipboard

Add svg backend tests

Open fcooper8472 opened this issue 7 years ago • 0 comments

We ought to unit test the svg backend methods. Simple things will be very straightforward, like

  SECTION("finalise produces correct string") {
    backend.finalise();
    CHECK(out.str() == "</svg>\n");
  }

For functions taking arguments, such as circle, we can check that specific parameter values end up as expected in the resulting string.

fcooper8472 avatar Jul 10 '18 15:07 fcooper8472