Skip to main content

ane/data/
skill.rs

1pub const SKILL_CONTENT: &str = include_str!("ane-skill.md");
2
3#[cfg(test)]
4mod tests {
5    use super::*;
6
7    #[test]
8    fn skill_content_is_non_empty() {
9        assert!(!SKILL_CONTENT.is_empty());
10    }
11
12    #[test]
13    fn skill_content_contains_key_markers() {
14        assert!(SKILL_CONTENT.contains("ane exec"), "missing 'ane exec'");
15        assert!(SKILL_CONTENT.contains("Action"), "missing 'Action'");
16        assert!(SKILL_CONTENT.contains("Scope"), "missing 'Scope'");
17    }
18
19    #[test]
20    fn skill_content_under_800_words() {
21        let word_count = SKILL_CONTENT.split_whitespace().count();
22        assert!(
23            word_count <= 800,
24            "SKILL_CONTENT has {word_count} words, expected <= 800"
25        );
26    }
27}