use super::*;
#[test]
fn test_parse_routing_decision_handles_long_responses() {
let long_response = format!(
"{} BALANCED {}",
"x".repeat(500), "y".repeat(500) );
let result = LlmBasedRouter::parse_routing_decision(&long_response);
assert!(
result.is_ok(),
"Parser should handle long responses with keywords at word boundaries"
);
assert_eq!(result.unwrap(), TargetModel::Balanced);
}
#[test]
fn test_parse_routing_decision_handles_extreme_length() {
let extreme_response = format!("FAST {}", "x".repeat(1_000_000));
let result = LlmBasedRouter::parse_routing_decision(&extreme_response);
assert!(result.is_ok(), "Parser should not crash on extreme length");
assert_eq!(result.unwrap(), TargetModel::Fast);
}