chiark / gitweb /
jst-lower: exhaustive: Make no vpid have 0 as slot num
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 10 Jul 2021 12:22:20 +0000 (13:22 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 10 Jul 2021 18:32:58 +0000 (19:32 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
jstest/jst-lower.rs

index 7e2b3f217e3574f5636e0e8c8ecd08d789f5d36a..2c3b6ecf1d54ceae0bb55480bf1777d1ca197c7e 100644 (file)
@@ -299,7 +299,7 @@ impl TestsAccumulator {
   #[throws(Explode)]
   pub fn add_exhaustive(&mut self, n: usize) {
     let ids: Vec<Vpid> = (0..n).map(
-      |i| format!("{}.{}", i, n).try_into().unwrap()
+      |i| format!("{}.{}", i+1, n).try_into().unwrap()
     ).collect_vec();
 
     let pieces_configs = ids.iter().cloned().map(|id| {