mac-notification-sys 0.3.0

Thin wrapper around macOS Notifications.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
extern crate mac_notification_sys;

use mac_notification_sys::*;

#[test]
#[should_panic]
fn set_application_again() {
    let _ = set_application("com.apple.Terminal").unwrap();
    let _ = set_application("com.apple.Terminal").unwrap();
}

#[test]
fn get_default_identifier() {
    let bundle = get_bundle_identifier_or_default("thisappdoesnotexist");
    assert_eq!(bundle, "com.apple.Terminal");
}