-
Notifications
You must be signed in to change notification settings - Fork 223
Language Rust
kazk edited this page Jun 16, 2020
·
9 revisions
- 1.44 (Rust 2018)
Rust kata uses builtin #[test].
pub fn add(x: i32, y: i32) -> i32 { x + y }tests will be a child module.
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn adds_i32() {
assert_eq!(add(1, 1), 2);
}
}12 seconds
-
bit-set:0.5.2 -
chrono:0.4.11 -
itertools:0.9.0 -
lazy_static:1.4.0 -
num:0.2.1 -
quickcheck:0.9.2-
quickcheck_macros:0.9.1
-
-
rand:0.7.3 -
regex:1.3.9 -
serde:1.0.111-
serde_derive:1.0.111 -
serde_json:1.0.53
-
-
text_io:0.1.8
None