Rust-Programming-Cookbook/Chapter01/testing/tests/list_integration.rs

11 wiersze
196 B
Rust
Czysty Zwykły widok Historia

2019-03-20 21:12:12 +00:00
use testing::List;
#[test]
fn test_list_insert_10k_items() {
let mut list = List::new_empty();
for _ in 0..10_000 {
list.append(100);
}
assert_eq!(list.length, 10_000);
}