oops
This commit is contained in:
parent
94f49651db
commit
4459185ba4
@ -1168,28 +1168,7 @@ mod tests {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn reflect_test() {
|
|
||||||
let mut x = Cryp::new()
|
|
||||||
.named(&"muji".to_string());
|
|
||||||
|
|
||||||
let mut y = Cryp::new()
|
|
||||||
.named(&"camel".to_string());
|
|
||||||
|
|
||||||
reflect(&mut y.clone(), &mut y, vec![]);
|
|
||||||
assert!(y.affected(Effect::Reflect));
|
|
||||||
|
|
||||||
let mut results = Skill::Attack.resolve(&mut x, &mut y);
|
|
||||||
|
|
||||||
assert!(x.hp() == 768);
|
|
||||||
|
|
||||||
let Resolution { source: _, target: _, event } = results.remove(0);
|
|
||||||
match event {
|
|
||||||
Event::Damage { amount, mitigation: _, category: _ } => assert_eq!(amount, 256),
|
|
||||||
_ => panic!("not damage"),
|
|
||||||
};
|
|
||||||
} #[test]
|
|
||||||
fn corrupt_test() {
|
fn corrupt_test() {
|
||||||
let mut x = Cryp::new()
|
let mut x = Cryp::new()
|
||||||
.named(&"muji".to_string());
|
.named(&"muji".to_string());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user