Move around the tests for types
This commit is contained in:
parent
3cb1824a1b
commit
104b9b0864
3 changed files with 20 additions and 16 deletions
|
@ -35,7 +35,14 @@ impl IsChar for Char {
|
|||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::Char;
|
||||
use types::value::{IsBool, IsChar};
|
||||
use types::value::{IsBool, IsChar, Value};
|
||||
|
||||
#[test]
|
||||
fn equal_chars_are_equal() {
|
||||
assert_eq!(Char('a'), Char('a'));
|
||||
assert_eq!(Char('a').as_value(), Char('a').as_value());
|
||||
assert_ne!(Char('a').as_value(), Char('b').as_value());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn chars_are_chars() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue