siphon test fix

This commit is contained in:
ntr
2019-05-02 11:51:56 +10:00
parent f93aba866f
commit 4758ae1987
2 changed files with 9 additions and 9 deletions
+6 -7
View File
@@ -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"),
};
}