Added single unit test necessary for system

This commit is contained in:
François Autin 2023-03-13 15:09:46 +01:00
parent 8126a9ac2e
commit 0e57576b6a
No known key found for this signature in database
GPG Key ID: 343F5D382E1DD77C

View File

@ -60,4 +60,26 @@ pub enum ObjectType {
FileType, FileType,
ThreadType, ThreadType,
InvalidType 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!();
}
} }