1pub mod com;
2pub mod common;
3#[cfg(test)]
4mod tests {
5 use std::{thread, time::Duration};
6
7 use crate::com::com_module::RSCom;
8
9
10
11 #[test]
12 fn it_works() {
13 let com = RSCom::init("InternetExplorer.Application");
14 match com {
15 Ok(obj) => {
16 println!("Ok on Com!");
17 let vis_r = obj.api.get("Visible",vec![]);
18 match vis_r {
19 Ok(_o) => {
20 thread::sleep(Duration::from_secs(1));
21 println!("Worked");
22 assert_eq!(1, 1);
23 },
24 Err(e) => {
25 println!("{}", e);
26 assert_eq!(1, -2);
27 },
28 }
29 },
30 Err(e) => {
31 println!("{}", e);
32 assert_eq!(1, -1);
33 },
34 }
35 }
36}