use slash_lang::parser::normalize::{normalize_name, parse_test_id};

#[test]
fn normalize_across_case_and_separators() {
    assert_eq!(normalize_name("/Some-Foo"), "somefoo");
    assert_eq!(normalize_name("/someFoo"), "somefoo");
    assert_eq!(normalize_name("/some_foo"), "somefoo");
}

#[test]
fn parse_test_suffix() {
    assert_eq!(parse_test_id("/test3"), Some(3));
    assert_eq!(parse_test_id("/Test-3"), Some(3));
    assert_eq!(parse_test_id("/build3"), None);
}
