use koala_drift::Registry;

#[test]
fn builtin_registry_has_unique_ids() {
    let reg = Registry::builtin();
    assert!(reg.len() >= 3, "expected at least 3 built-in checks");
    let mut ids: Vec<&str> = reg.checks().map(|c| c.id()).collect();
    let n = ids.len();
    ids.sort_unstable();
    ids.dedup();
    assert_eq!(ids.len(), n, "duplicate check id in builtin registry");
}

#[test]
fn builtin_registry_intents_non_empty() {
    let reg = Registry::builtin();
    for c in reg.checks() {
        assert!(!c.intent().is_empty(), "{} has empty intent", c.id());
    }
}
