From 479463c36a6b17db8584e690111e8ca599bcbb16 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 11 Apr 2022 20:33:40 +0100 Subject: [PATCH] die: wip svg, add more tests Again, verified by hand-hacking and using Refresh in inkscape, that they look right. Signed-off-by: Ian Jackson --- base/misc.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/base/misc.rs b/base/misc.rs index f62ddb9f..e6dd8721 100644 --- a/base/misc.rs +++ b/base/misc.rs @@ -65,6 +65,10 @@ fn die_cooldown_path_test() { }; t80(1./3., "M 0,-80 A 80,80 0 0 1 69.2820323027551,39.999999999999986"); t80(1. , "M 0,-80 A 80,80 0 0 1 5.023241562345087,79.84213827426173 80,80 0 0 1 -10.026658685144373,-79.36917610515822 80,80 0 0 1 -0.000000000000019594348786357652,-80"); + t80(0.5 , "M 0,-80 A 80,80 0 0 1 5.023241562345087,79.84213827426173 80,80 0 0 1 0.000000000000009797174393178826,80"); + t80(0.6 , "M 0,-80 A 80,80 0 0 1 5.023241562345087,79.84213827426173 80,80 0 0 1 -47.02282018339784,64.72135954999581"); + t80(0.9 , "M 0,-80 A 80,80 0 0 1 5.023241562345087,79.84213827426173 80,80 0 0 1 -47.02282018339787,-64.72135954999578"); + t80(0.99 , "M 0,-80 A 80,80 0 0 1 5.023241562345087,79.84213827426173 80,80 0 0 1 -10.026658685144373,-79.36917610515822 80,80 0 0 1 -5.023241562345061,-79.84213827426173"); } pub fn default() -> T { Default::default() } -- 2.30.2