From: Ian Jackson Date: Mon, 11 Apr 2022 19:33:40 +0000 (+0100) Subject: die: wip svg, add more tests X-Git-Tag: otter-1.1.0~584 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=479463c36a6b17db8584e690111e8ca599bcbb16;p=otter.git 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 --- 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() }