Commit 29d97b94 authored by David Brown's avatar David Brown Committed by David Brown
Browse files

ptest: Use 1-based indices for tests



Adjust the printed numbers, as well as the values to `--test` so that the tests
are numbered starting from 1 instead of zero.

Signed-off-by: default avatarDavid Brown <david.brown@linaro.org>
parent 0ceb85ad
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -264,7 +264,7 @@ impl Matrix {
    /// Print out all of the feature sets.
    fn show(&self) {
        for (i, feature) in self.envs.iter().enumerate() {
            println!("{:3}. {}", i, feature.simple_textual());
            println!("{:3}. {}", i + 1, feature.simple_textual());
        }
    }

@@ -276,7 +276,7 @@ impl Matrix {
            .envs
            .into_iter()
            .enumerate()
            .filter(|(ind, _)| pick.contains(ind))
            .filter(|(ind, _)| pick.contains(&(ind + 1)))
            .map(|(_, item)| item)
            .collect();
        Matrix { envs }