Move mod stuff to lib.rs
This commit is contained in:
parent
c2ac6450ba
commit
359da30eb7
2 changed files with 6 additions and 24 deletions
|
@ -4,7 +4,12 @@ mod value;
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
|
use bool::Bool;
|
||||||
|
use char::Char;
|
||||||
|
use value::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn it_works() {
|
fn booleans_and_chars_are_not_equal() {
|
||||||
|
assert_ne!(Bool(true).as_value(), Char('a').as_value());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,23 +0,0 @@
|
||||||
/* types/mod.rs
|
|
||||||
* Eryn Wells <eryn@erynwells.me>
|
|
||||||
*/
|
|
||||||
|
|
||||||
pub mod bool;
|
|
||||||
pub mod char;
|
|
||||||
pub mod number;
|
|
||||||
pub mod value;
|
|
||||||
|
|
||||||
pub use self::bool::Bool;
|
|
||||||
pub use self::char::Char;
|
|
||||||
pub use self::number::Number;
|
|
||||||
pub use self::value::Value;
|
|
||||||
|
|
||||||
#[cfg(test)]
|
|
||||||
mod tests {
|
|
||||||
use super::*;
|
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn booleans_and_chars_are_not_equal() {
|
|
||||||
assert_ne!(Bool::new(true).as_value(), Char::new('a').as_value());
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue