trase
trase copied to clipboard
Add svg backend tests
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.