Minor quality-of-life improvements to LPE testing
A few improvements to make the output of the LPE test suite more useful:
- Fix the Sketch LPE to not throw a range-check exception when the input is a path consisting of a single point - which happens routinely during the test suite. The affected tests had to be updated slightly.
- Reduce warning spam by not printing a warning when a path is empty when it is supposed to be.
- Modify an assertion to print out the values it is comparing.
- Make failed tests print out more information.
Before:
Value of: totala == totalb
Actual: false
Expected: true
After:
Expected equality of these values:
totala
Which is: 2
totalb
Which is: 1
More information about the failure:
svg:
inkscape/testfiles/lpe_tests/Inkscape_1_1.svg
id:
path216657(simplify)
a:
M 39.056788,103.87717 C -45.448429,129.43926 102.03567,253.48069 74.285734,153.42184 68.808684,133.67306 58.47186,113.08255 39.056788,103.87717 Z
b:
m 39.056788,103.87717 c -141.590048,149.66013 194.084852,88.58182 0,0 z