diff --git a/sgl-router/tests/tool_parser_mistral.rs b/sgl-router/tests/tool_parser_mistral.rs index d4c13d7e1..3801006f5 100644 --- a/sgl-router/tests/tool_parser_mistral.rs +++ b/sgl-router/tests/tool_parser_mistral.rs @@ -59,7 +59,7 @@ async fn test_mistral_nested_json() { async fn test_mistral_with_text_after() { let parser = MistralParser::new(); let input = r#"[TOOL_CALLS] [{"name": "test", "arguments": {}}] - + And here's some text after the tool call that should be ignored."#; let result = parser.parse_complete(input).await.unwrap(); diff --git a/sgl-router/tests/tool_parser_mixed_edge_cases.rs b/sgl-router/tests/tool_parser_mixed_edge_cases.rs index 19a05eb77..595fb74a0 100644 --- a/sgl-router/tests/tool_parser_mixed_edge_cases.rs +++ b/sgl-router/tests/tool_parser_mixed_edge_cases.rs @@ -116,9 +116,9 @@ async fn test_empty_and_whitespace_variations() { let cases = vec![ r#" {"name":"compact","arguments":{}} "#, r#" - + {"name": "spaced", "arguments": {}} - + "#, r#" {"name": "tabbed", "arguments": {}} "#, // tabs ]; diff --git a/sgl-router/tests/tool_parser_pythonic.rs b/sgl-router/tests/tool_parser_pythonic.rs index 5a357eae5..369d40ad4 100644 --- a/sgl-router/tests/tool_parser_pythonic.rs +++ b/sgl-router/tests/tool_parser_pythonic.rs @@ -159,7 +159,7 @@ async fn test_pythonic_real_world_llama4() { // Actual output from Llama 4 model let input = r#"I'll help you with multiple tasks. Let me search for information and perform calculations. -[web_search(query="latest Rust features", max_results=3, safe_search=True), +[web_search(query="latest Rust features", max_results=3, safe_search=True), calculate(expression="42 * 3.14159", precision=2), get_weather(city="San Francisco", units="fahrenheit", include_forecast=False)]