Added single unit test necessary for system
This commit is contained in:
parent
8126a9ac2e
commit
0e57576b6a
@ -61,3 +61,25 @@ pub enum ObjectType {
|
||||
ThreadType,
|
||||
InvalidType
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
|
||||
use crate::{System, Machine};
|
||||
|
||||
macro_rules! init_system {
|
||||
() => {{
|
||||
let m = Machine::init_machine();
|
||||
init_system!(m)
|
||||
}};
|
||||
($a:expr) => {{
|
||||
System::new($a)
|
||||
}};
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_init_system() {
|
||||
init_system!();
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user