test: add app name test

This commit is contained in:
2026-09-29 15:11:57 +02:00
parent 74e8e58f3c
commit ee8c5f8509

View File

@@ -194,4 +194,17 @@ mod tests {
uninit(); uninit();
assert!(!is_initted()); assert!(!is_initted());
} }
#[test]
fn test_app_name_set_and_get() {
let first_name: &str = "Morbius";
init(first_name);
assert_eq!(get_app_name().unwrap(), first_name);
let new_name: &str = "Milo";
set_app_name(new_name);
assert_eq!(get_app_name().unwrap(), new_name);
uninit();
}
} }