Evaluations/Write 20k Unit Tests
main
prompts.parquet
text → text
Fireworks AI Fireworks AI
fireworks Qwen 2.5 Coder 32B Instruct
rust_test_list
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! or assert_eq! 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:
Feb 19, 2025, 3:06 PM UTC
Feb 19, 2025, 3:06 PM UTC
5 row sample
3322 tokens$ 0.0030
5 rows processed, 3322 tokens used ($0.0030)
Estimated cost for all 20000 rows: $11.96
Sample Resultscompleted
6 columns, 1-5 of 20000 rows