Consolidate some tests in bool and char
This commit is contained in:
parent
6ae557d837
commit
0d3021fb74
2 changed files with 2 additions and 10 deletions
|
@ -46,10 +46,6 @@ mod tests {
|
||||||
fn bools_are_bools() {
|
fn bools_are_bools() {
|
||||||
assert_eq!(Bool(false).is_bool(), true);
|
assert_eq!(Bool(false).is_bool(), true);
|
||||||
assert_eq!(Bool(false).is_char(), false);
|
assert_eq!(Bool(false).is_char(), false);
|
||||||
}
|
assert_eq!(Bool(false).is_number(), false);
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn bools_are_not_chars() {
|
|
||||||
assert_eq!(Bool(false).is_char(), false);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,10 +43,6 @@ mod tests {
|
||||||
fn chars_are_chars() {
|
fn chars_are_chars() {
|
||||||
assert_eq!(Char('a').is_char(), true);
|
assert_eq!(Char('a').is_char(), true);
|
||||||
assert_eq!(Char('a').is_bool(), false);
|
assert_eq!(Char('a').is_bool(), false);
|
||||||
}
|
assert_eq!(Char('a').is_number(), false);
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn chars_are_not_bools() {
|
|
||||||
assert_eq!(Char('a').is_bool(), false);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue