mirror of
https://github.com/szymon-jozef/libnotify-rs.git
synced 2026-10-27 19:20:43 +01:00
test: add app name test
This commit is contained in:
@@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user