From 963cb86265c76152376a20d2776224dd7f789188 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 9 Jul 2021 19:01:34 +0100 Subject: [PATCH] jstest: lower: implement a test Signed-off-by: Ian Jackson --- jstest/jst-lower.rs | 8 ++++++++ 1 file changed, 8 insertions(+) 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 } -- 2.30.2