feat: add tests

This commit is contained in:
2024-01-07 23:51:29 +08:00
parent 7ec4c4a526
commit 97baed2e2a
11 changed files with 107 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
#[cfg(target_os = "macos")]
fn get_os() -> &'static str {
"macos"
}
#[cfg(not(target_os = "macos"))]
fn get_os() -> &'static str {
"unknown"
}
fn main() {
println!("OS: {}", get_os());
}