| Crates.io | fe2o3 |
| lib.rs | fe2o3 |
| version | 0.1.0 |
| created_at | 2024-01-02 22:14:50.455173+00 |
| updated_at | 2024-01-02 22:14:50.455173+00 |
| description | A chemistry library for Rust. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1086716 |
| size | 5,402 |
Unit tests are, as is done in Rust, written directly in the src file. PRs without unit tests are not merged. Example from cargo new:
pub fn add(left: usize, right: usize) -> usize {
left + right
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}