You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Test updating an existing section while preserving unrelated sections
494
+
let content = "# Project goals\n\n## Current goal period (2025H1)\n\nThe 2025H1 goal period runs from Jan 1 to Jun 30.\n\n## Next goal period (2026H1)\n\nOld content.\n\n## Extra section\nsome content";
495
+
let result = process_readme_content(content,"2026h1","2026h1");
496
+
497
+
assert!(result.contains("## Next goal period (2026H1)"));
498
+
assert!(result.contains("running from January 1 to June 30"));
499
+
assert!(!result.contains("Old content."));
500
+
assert!(result.contains("## Extra section\nsome content"));
0 commit comments