From: Ian Jackson Date: Sat, 10 Jul 2021 14:49:49 +0000 (+0100) Subject: zcoord: promote mk() into mod test X-Git-Tag: otter-0.7.2~166 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=1a5e6b594c7696b9b32bb6c52ee387831a9497b8;p=otter.git zcoord: promote mk() into mod test Signed-off-by: Ian Jackson --- diff --git a/base/zcoord.rs b/base/zcoord.rs index 44e9ae5d..610b5ce5 100644 --- a/base/zcoord.rs +++ b/base/zcoord.rs @@ -768,9 +768,8 @@ mod test { use std::collections::hash_map::DefaultHasher; use std::mem; - fn bf(s: &str) -> ZCoord { - ZCoord::from_str(s).unwrap() - } + fn bf(s: &str) -> ZCoord { ZCoord::from_str(s).unwrap() } + fn mk(s: &str) -> super::Mutable { bf(s).clone_mut() } #[test] fn bfparse() { @@ -828,7 +827,6 @@ mod test { #[test] fn incdec() { - fn mk(s: &str) -> super::Mutable { bf(s).clone_mut() } use core::cmp::Ordering::{Greater,Less}; impl Mutable { fn tincdec(mut self, exp: &str, aso: ASO, @@ -884,6 +882,11 @@ mod test { ; } + #[test] + fn iter() { + + } + #[test] fn range() { struct It {