mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-28 09:21:55 +01:00
Eight tests in effects, brush, tools and trace bounded their run time with Instant::elapsed. Each now counts the work the bounded code does and asserts that count instead: - effects: the subpaths Offset Path offsets after Transform copies move behind it (1 for the rectangle, 5 for five leaves) - brush: the calls a misbehaving bend map gets, at most what the fitting depth and the chord count allow - tools: the points Liquify's simplify measures (five per anchor) and the anchors it moves (one each), and the objects the eyedropper's hit tests may visit (within the work limit) - trace: the named logo colors compared with those kept (ten per color), the lookups that drop repeated swatches (one each) and the swatch colors compared with the picture's colors (each distinct swatch once per color) Each count fails when the bounded step is removed or made to repeat.