Evaluations/Write Unit Tests/Iteration history
History
Total running cost: $0.1082
PromptRowsTypeProvider/ModelTargetStatusRuntimeRunByTokensCost
Run
You are a pragmatic Rust programmer. Given the following question, and rust function, write three unit tests for the function. The tests should be a simple line delimited list of assert statements. For example, if the function is: ```rust fn add_nums(x: i32, y: i32) -> i32 { x + y } ``` The unit tests should be ```rust assert_eq!(add_nums(1, 2), 3); assert_eq!(add_nums(10, 2), 12); assert_eq!(add_nums(-10, 2), 8); ``` Make the tests simple and easy to understand. The code should pass `cargo build` and `cargo clippy` and `cargo test`. Do not add a main function or any other code. Respond with only the assert! statements and nothing else. ============ Question: {rust_prompt} Code: {rust_code} Unit Tests:
200texttext
Fireworks AI Fireworks AIfireworks Qwen 2.5 Coder 32B Instruct
2179b355d934b7d01e867388da3aa1f5completed 00:04:405 days agoox 116949 tokens$ 0.1053
Sample
You are a pragmatic Rust programmer. Given the following question, and rust function, write three unit tests for the function. The tests should be a simple line delimited list of assert statements. For example, if the function is: ```rust fn add_nums(x: i32, y: i32) -> i32 { x + y } ``` The unit tests should be ```rust assert_eq!(add_nums(1, 2), 3); assert_eq!(add_nums(10, 2), 12); assert_eq!(add_nums(-10, 2), 8); ``` Make the tests simple and easy to understand. The code should pass `cargo build` and `cargo clippy` and `cargo test`. Do not add a main function or any other code. Respond with only the assert! statements and nothing else. ============ Question: {rust_prompt} Code: {rust_code} Unit Tests:
5texttext
Fireworks AI Fireworks AIfireworks Qwen 2.5 Coder 32B Instruct
Sample - N/Acompleted 00:00:075 days agoox 3265 tokens$ 0.0029