From 0d3021fb7464154cf8571b7fa1bd6a1510bd585c Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sun, 9 Apr 2017 15:55:49 -0700 Subject: [PATCH] Consolidate some tests in bool and char --- types/src/bool.rs | 6 +----- types/src/char.rs | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/types/src/bool.rs b/types/src/bool.rs index 888fcd0..3f1aa00 100644 --- a/types/src/bool.rs +++ b/types/src/bool.rs @@ -46,10 +46,6 @@ mod tests { fn bools_are_bools() { assert_eq!(Bool(false).is_bool(), true); assert_eq!(Bool(false).is_char(), false); - } - - #[test] - fn bools_are_not_chars() { - assert_eq!(Bool(false).is_char(), false); + assert_eq!(Bool(false).is_number(), false); } } diff --git a/types/src/char.rs b/types/src/char.rs index ed39abc..59750c4 100644 --- a/types/src/char.rs +++ b/types/src/char.rs @@ -43,10 +43,6 @@ mod tests { fn chars_are_chars() { assert_eq!(Char('a').is_char(), true); assert_eq!(Char('a').is_bool(), false); - } - - #[test] - fn chars_are_not_bools() { - assert_eq!(Char('a').is_bool(), false); + assert_eq!(Char('a').is_number(), false); } }