Originally posted by **sak96** June 28, 2023
```rust
else if Some(FunctionArgType::VecF64) = &self.return_type {
r#"
assert!(actual.len(), expected.len(), "actual {actual} not same length as {expected}");
actual.iter().zip(expected.iter()).enumerate().for_each(|(i, (actual, expected))| {
assert!((actual - expected).abs() < 1e-5, "Assertion failed: {i}th element in actual {actual:.5} but expected {expected:.5}. Diff is more than 1e-5.");
})
"#
} else
```
use match statement if it helps
Discussed in https://github.com/rust-practice/cargo-leet/discussions/34