Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

1.2 KB
Raw Blame
use super::is_macro_notification_sender;

#[test]
fn matches_every_environment_prefix() {
    assert!(is_macro_notification_sender(
        "[email protected]"
    ));
    assert!(is_macro_notification_sender(
        "[email protected]"
    ));
    assert!(is_macro_notification_sender(
        "[email protected]"
    ));
}

#[test]
fn is_case_and_whitespace_insensitive() {
    assert!(is_macro_notification_sender(
        "[email protected]"
    ));
    assert!(is_macro_notification_sender(
        "  [email protected]\n"
    ));
}

#[test]
fn rejects_other_macro_and_lookalike_domains() {
    assert!(!is_macro_notification_sender("[email protected]"));
    assert!(!is_macro_notification_sender("[email protected]"));
    assert!(!is_macro_notification_sender(
        "[email protected]"
    ));
    assert!(!is_macro_notification_sender(
        "[email protected]"
    ));
    assert!(!is_macro_notification_sender(
        "[email protected]"
    ));
    assert!(!is_macro_notification_sender("notification.macro.com"));
    assert!(!is_macro_notification_sender(""));
}