use super::*; use pretty_assertions::assert_eq; #[test] fn classifies_memory_excluded_fragments() { let cases = [ ( "# AGENTS.md instructions for /tmp\n\n\nbody\n", true, ), ( "# AGENTS.md instructions\n\n\nbody\n", true, ), ( "\ndemo\nskills/demo/SKILL.md\nbody\n", true, ), ( "\n/tmp\n", false, ), ( "{\"agent_id\":\"a\",\"status\":\"completed\"}", false, ), ]; for (text, expected) in cases { assert_eq!( is_memory_excluded_contextual_user_fragment(&ContentItem::InputText { text: text.to_string(), }), expected, "{text}", ); } }