()
| 516 | |
| 517 | #[test] |
| 518 | fn test_fallback_check_achievement_done() { |
| 519 | let goal = AgentGoal::new("Test task").with_criteria(vec!["Criterion 1".to_string()]); |
| 520 | |
| 521 | let result = LlmPlanner::fallback_check_achievement(&goal, "The task is done."); |
| 522 | assert!(result.achieved); |
| 523 | assert!((result.progress - 1.0).abs() < f32::EPSILON); |
| 524 | assert!(result.remaining_criteria.is_empty()); |
| 525 | } |
| 526 | |
| 527 | #[test] |
| 528 | fn test_fallback_check_achievement_not_done() { |
nothing calls this directly
no test coverage detected