chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec5684f
)
jstest: lower: add another test
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 9 Jul 2021 18:06:58 +0000
(19:06 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 9 Jul 2021 18:06:58 +0000
(19:06 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
jstest/jst-lower.rs
patch
|
blob
|
history
diff --git
a/jstest/jst-lower.rs
b/jstest/jst-lower.rs
index b87132f5dcf6a193454ee41f3f5dc72ce5bc5ebe..3b7dd89491dce7ad5bd72fb8e44d4e20fbc1e832 100644
(file)
--- a/
jstest/jst-lower.rs
+++ b/
jstest/jst-lower.rs
@@
-182,6
+182,20
@@
impl Test {
}
}
}
+
+ // all bottom targets now below all non-targets
+ {
+ let mut had_nontarget = None;
+ for n in &new {
+ if ! n.target {
+ had_nontarget = Some(n);
+ }
+ if n.bottom && n.target {
+ assert!( had_nontarget.is_none(),
+ "{:?} {:?}", &n, had_nontarget);
+ }
+ }
+ }
}
}