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.
We ought to unit test the svg backend methods. Simple things will be very straightforward, like
For functions taking arguments, such as
circle, we can check that specific parameter values end up as expected in the resulting string.