use crate::zfile;
#[test]
fn test_get_current_dir() {
let current_dir = zfile::get_exe_dir();
assert!(current_dir.exists());
println!("当前目录: {}", current_dir.to_str());
}
#[test]
fn test_log() {
zlog::init(None);
zlog::debug!("1. The is debug");
zlog::warn!("1. The is warn");
zlog::init(zlog::Options {
level: zlog::Level::DEBUG,
..Default::default()
});
zlog::debug!("2. The is debug");
zlog::warn!("2. The is warn");
}