tests: add more cases for bool

This commit is contained in:
Dmitriy Pleshevskiy 2022-07-22 23:11:09 +03:00
parent 7b1746ef83
commit a8c124aabc
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215

View file

@ -135,6 +135,7 @@ mod tests {
let en = TestCase::<7>.to_string(); let en = TestCase::<7>.to_string();
[ [
("1", true),
("y", true), ("y", true),
("yes", true), ("yes", true),
("true", true), ("true", true),
@ -142,6 +143,7 @@ mod tests {
("on", true), ("on", true),
("false", false), ("false", false),
("f", false), ("f", false),
("0", false),
] ]
.iter() .iter()
.for_each(|(val, expected)| { .for_each(|(val, expected)| {