From: Ian Jackson Date: Fri, 9 Jul 2021 18:01:34 +0000 (+0100) Subject: jstest: lower: implement a test X-Git-Tag: otter-0.7.2~197 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=963cb86265c76152376a20d2776224dd7f789188;p=otter.git jstest: lower: implement a test Signed-off-by: Ian Jackson --- diff --git a/jstest/jst-lower.rs b/jstest/jst-lower.rs index cf8072b2..dabaa677 100644 --- a/jstest/jst-lower.rs +++ b/jstest/jst-lower.rs @@ -161,6 +161,14 @@ impl Test { } // z coords (at least of bottom) in updates all decrease + { + for n in &new { + if n.bottom && n.updated { + assert!( n.new_z < n.old_z, "{:?}", &n ); + } + } + } + // all targets now below all non-bottom non-targets // xxx ^ unimplemented checks }