use crate::AppPath;
#[test]
fn test_display_trait() {
let app_path = AppPath::with("config.toml");
let displayed = format!("{app_path}");
assert!(displayed.ends_with("config.toml"));
assert!(displayed.contains("config.toml"));
}
#[test]
fn test_display_with_complex_path() {
let complex_path = AppPath::with("data/nested/config/app.json");
let displayed = format!("{complex_path}");
assert!(displayed.contains("app.json"));
assert!(displayed.contains("config"));
assert!(displayed.contains("nested"));
}
#[test]
fn test_debug_trait() {
let app_path = AppPath::with("config.toml");
let debug_str = format!("{app_path:?}");
assert!(debug_str.contains("config.toml"));
assert!(debug_str.len() > "config.toml".len());
}
#[test]
fn test_debug_trait_detailed() {
let app_path = AppPath::with("test.toml");
let debug_output = format!("{app_path:#?}");
assert!(debug_output.contains("test.toml"));
}