use slash_lang::parser::ast::Priority;
use slash_lang::parser::priority::infer_priority;

#[test]
fn priority_mapping_by_shape() {
    assert_eq!(infer_priority("/MAX_PRIORITY"), Priority::Max);
    assert_eq!(infer_priority("/HighPriority"), Priority::High);
    assert_eq!(infer_priority("/medPriority"), Priority::Medium);
    assert_eq!(infer_priority("/low-priority"), Priority::Low);
    assert_eq!(infer_priority("/snake_objects"), Priority::Lowest);
    assert_eq!(infer_priority("/build"), Priority::Low);
}
