tests: add more cases for bool
This commit is contained in:
parent
7b1746ef83
commit
a8c124aabc
1 changed files with 2 additions and 0 deletions
|
@ -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)| {
|
||||||
|
|
Reference in a new issue