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

index 5a9548bef8395f5af7ed1eb2d1ff631ac6e78cf4..856308c316a0facf7277e0e40ff0d1572dade9f0 100644 (file)
@@ -152,6 +152,14 @@ impl Test {
     }
 
     // no non-bottom non-targets moved
+    {
+      for n in &new {
+        if n.target { continue }
+        if n.bottom { continue }
+        assert!( ! n.updated, "{:?}", n );
+      }
+    }
+
     // z coords (at least of bottom) in updates all decrease
     // all targets now below all non-bottom non-targets
     // xxx ^ unimplemented checks