forked from Maxluli/RustyPropagation
human: remove new() trait
This commit is contained in:
+5
-1
@@ -345,7 +345,11 @@ mod tests {
|
||||
let mut stats: Stats;
|
||||
|
||||
for _ in 0..10 {
|
||||
humans.push(Human::new(0, 0));
|
||||
humans.push(Human{
|
||||
present_state: State::Normal,
|
||||
x: 0,
|
||||
y: 0,
|
||||
});
|
||||
}
|
||||
stats = humans_stats(&humans);
|
||||
assert_eq!(stats.normal, 10);
|
||||
|
||||
Reference in New Issue
Block a user