3 ms·
One very easy thing to test for is wether your SVG creating code actually returns valid XML/SVG or not. Then you might want to make some of these magic values
by rmetzler 12y ago
One very easy thing to test for is wether your SVG creating code actually returns valid XML/SVG or not.
Then you might want to make some of these magic values configurable so users can create different sizes or different color schemes and some of them might be dependent. Unfortunately, I doubt that this refactoring is done without mistakes. Maybe you should write some tests before and then refactor.