siphon test fix
This commit is contained in:
+6
-7
@@ -1378,6 +1378,12 @@ mod tests {
|
||||
_ => panic!("not siphon"),
|
||||
};
|
||||
|
||||
let Resolution { source: _, target: _, event } = results.remove(0);
|
||||
match event {
|
||||
Event::Damage { amount, skill: _, mitigation: _, colour: _} => assert_eq!(amount, 256),
|
||||
_ => panic!("not damage siphon"),
|
||||
};
|
||||
|
||||
let Resolution { source: _, target, event } = results.remove(0);
|
||||
match event {
|
||||
Event::Healing { amount, skill: _, overhealing: _ } => {
|
||||
@@ -1386,13 +1392,6 @@ mod tests {
|
||||
},
|
||||
_ => panic!("not healing"),
|
||||
};
|
||||
|
||||
let Resolution { source: _, target: _, event } = results.remove(0);
|
||||
match event {
|
||||
Event::Damage { amount, skill: _, mitigation: _, colour: _} => assert_eq!(amount, 256),
|
||||
_ => panic!("not damage siphon"),
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user