Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions changelog.d/20260531_000000_test_localized_plan_capture.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
bump: patch
---

### Fixed
- Added regression coverage for localized accepted-plan headings.
19 changes: 19 additions & 0 deletions tests/unit/plan_capture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,25 @@ Do not include this.
assert!(!plans[0].content.contains("Summary"));
}

#[test]
fn extracts_localized_accepted_plan_headings() {
let message = r"
## Принятый план
- Сохранить только подтвержденный план.
- Синхронизировать его с PR.
## Итог
Не включать этот раздел.
";

let plans = extract_marked_plans(message);

assert_eq!(plans.len(), 1);
assert_eq!(plans[0].title.as_deref(), Some("Принятый план"));
assert!(plans[0].content.contains("подтвержденный план"));
assert!(!plans[0].content.contains("Итог"));
}

#[test]
fn extracts_accepted_plan_label_until_next_heading() {
let message = r"
Expand Down
Loading