chiark / gitweb /
jstest: lower: implement a test
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 9 Jul 2021 18:01:34 +0000 (19:01 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 9 Jul 2021 18:01:34 +0000 (19:01 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
jstest/jst-lower.rs

index cf8072b2c3f0a84f2f597040aadfbb2fc9ef6355..dabaa677fd312a78d53954849f3f236b0f72138c 100644 (file)
@@ -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
   }