From 4247a145ad6a599d609f727e4f3b04c3d2e267ba Mon Sep 17 00:00:00 2001 From: Lorenzo Fontoura Date: Sun, 22 Dec 2024 23:23:01 +1000 Subject: [PATCH] test: round to 2 decimals --- src/chat.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/chat.rs b/src/chat.rs index 9be86d9..0ccbfe0 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -804,7 +804,10 @@ mod tests { [ ChatCompletionMessage { role: ChatCompletionMessageRole::User, - content: Some("What's 0.9102847*28456? reply in plain text please".to_string()), + content: Some( + "What's 0.9102847*28456? reply in plain text and round to 2 decimals" + .to_string(), + ), name: None, function_call: None, tool_call_id: None, @@ -852,7 +855,7 @@ mod tests { .content .as_ref() .unwrap(), - "The result of 0.9102847 multiplied by 28456 is approximately 25903.06." + "The result of 0.9102847 * 28456 is approximately 25903.06 when rounded to two decimal places." ); } }