1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
pub mod shell;
pub mod sys;

#[cfg(test)]
mod tests {
    use crate::shell::{Cmd, Arg, shell_tools::sh};
    use crate::sys::{OS, os_eye::open};

    #[test]
    // Test the Library
    fn test_script_kit() {
        // Test the shell function
        let cmd = Cmd::new("ls");
        let arg = Arg::new("-l");
        
        let result = sh(cmd, arg);
        assert!(result.is_ok());
        // println!("Shell: {}", result.unwrap().id()) -> pid;
        
        // Test the OS introspect function
        let result = open().name;
        assert!(result == "MacOS");
        // println!("OS: {}", result)
    }
}