From a8c124aabca8d0526976ffc46d1a4f6ce72cc319 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Fri, 22 Jul 2022 23:11:09 +0300 Subject: [PATCH] tests: add more cases for bool --- src/utils.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils.rs b/src/utils.rs index b12ea48..5673892 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -135,6 +135,7 @@ mod tests { let en = TestCase::<7>.to_string(); [ + ("1", true), ("y", true), ("yes", true), ("true", true), @@ -142,6 +143,7 @@ mod tests { ("on", true), ("false", false), ("f", false), + ("0", false), ] .iter() .for_each(|(val, expected)| {