From 1a5e6b594c7696b9b32bb6c52ee387831a9497b8 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 10 Jul 2021 15:49:49 +0100 Subject: [PATCH] zcoord: promote mk() into mod test Signed-off-by: Ian Jackson --- base/zcoord.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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 { -- 2.30.2