From eb3c7d0f53964bc706ccaf9b81c6524893ebff93 Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Mon, 9 Aug 2021 23:27:58 +1000 Subject: [PATCH] Fix STVOptions::describe for --min-threshold --- src/stv/mod.rs | 2 +- tests/data/.~lock.ers76.ods# | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 100644 tests/data/.~lock.ers76.ods# diff --git a/src/stv/mod.rs b/src/stv/mod.rs index 60ddf91..b04a1e0 100644 --- a/src/stv/mod.rs +++ b/src/stv/mod.rs @@ -192,7 +192,7 @@ impl STVOptions { if self.bulk_exclude { flags.push("--bulk-exclude".to_string()); } if self.defer_surpluses { flags.push("--defer-surpluses".to_string()); } if !self.immediate_elect { flags.push("--no-immediate-elect".to_string()); } - if self.min_threshold != "1" { flags.push(format!("--min-threshold {}", self.min_threshold)); } + if self.min_threshold != "0" { flags.push(format!("--min-threshold {}", self.min_threshold)); } if let Some(path) = &self.constraints_path { flags.push(format!("--constraints {}", path)); if self.constraint_mode != ConstraintMode::GuardDoom { flags.push(self.constraint_mode.describe()); } diff --git a/tests/data/.~lock.ers76.ods# b/tests/data/.~lock.ers76.ods# deleted file mode 100644 index b30e851..0000000 --- a/tests/data/.~lock.ers76.ods# +++ /dev/null @@ -1 +0,0 @@ -Yingtong Li,runassudo,NEXUS.localdomain,09.08.2021 19:43,file:///home/runassudo/.config/libreoffice/4; \ No newline at end of file