Crates.io | random_rust |
lib.rs | random_rust |
version | 0.1.0 |
source | src |
created_at | 2022-11-15 08:31:02.919849 |
updated_at | 2022-11-15 08:31:02.919849 |
description | 生成随机数据的库 |
homepage | https://github.com/Rehtt/random_rust |
repository | https://github.com/Rehtt/random_rust |
max_upload_size | |
id | 715536 |
size | 15,782 |
#[cfg(test)]
mod tests {
use chrono::{Duration, Local};
use super::*;
#[test]
fn it_works() {
let a: DateTime<Local> = Local::now();
println!("{}", rand_time(a.sub(Duration::days(180)),a));
println!("{}", rand_id_no(a));
println!("{}", rand_phone());
println!("{}",rand_name());
}
}