use slash_lang::parser::ast::Urgency;
use slash_lang::parser::suffixes::strip_urgency;

#[test]
fn urgency_from_bang_suffix() {
    assert_eq!(strip_urgency("/build!"), Some(("/build", Urgency::Low)));
    assert_eq!(strip_urgency("/build!!"), Some(("/build", Urgency::Medium)));
    assert_eq!(strip_urgency("/build!!!"), Some(("/build", Urgency::High)));
    assert_eq!(strip_urgency("/build!!!!"), None);
    assert_eq!(strip_urgency("/build"), Some(("/build", Urgency::None)));
}
