Test cases aligned with implementation
This commit is contained in:
@@ -205,7 +205,7 @@ mod tests {
|
|||||||
|
|
||||||
assert!(world.transform(game_message.clone()).is_some());
|
assert!(world.transform(game_message.clone()).is_some());
|
||||||
assert_contains!(world.transform(game_message.clone()), "DamageDone");
|
assert_contains!(world.transform(game_message.clone()), "DamageDone");
|
||||||
assert_contains!(world.transform(game_message.clone()), "-666");
|
assert_contains!(world.transform(game_message.clone()), "666");
|
||||||
|
|
||||||
let target = 1;
|
let target = 1;
|
||||||
let game_message =
|
let game_message =
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ mod tests {
|
|||||||
pub fn test_call_in_the_thread(subscribers: Subscribers)
|
pub fn test_call_in_the_thread(subscribers: Subscribers)
|
||||||
{
|
{
|
||||||
thread::spawn(move || {
|
thread::spawn(move || {
|
||||||
let mut publisher = Publisher::new(subscribers);
|
let _ = Publisher::new(subscribers);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user