Function assert_contains
Source pub fn assert_contains(result: &PromptTestResult, expected: &str)
Expand description
Assert that a prompt test result contains specific text.
§Examples
let result = test_prompt("What is the capital of France?").await?;
assert_contains(&result, "Paris");
§Panics
Panics if the response does not contain the expected text.