|
@ -9,7 +9,7 @@ mod common; |
|
|
use common::*;
|
|
|
use common::*;
|
|
|
|
|
|
|
|
|
#[async_std::test]
|
|
|
#[async_std::test]
|
|
|
pub async fn test_save_options<EG: EntityGateway>(ship: &mut ShipServerState<EG>, id: ClientId, options: u32) {
|
|
|
|
|
|
|
|
|
async fn test_save_options<EG: EntityGateway>(ship: &mut ShipServerState<EG>, id: ClientId, options: u32) {
|
|
|
let mut entity_gateway = InMemoryGateway::new();
|
|
|
let mut entity_gateway = InMemoryGateway::new();
|
|
|
|
|
|
|
|
|
let (user1, _char1) = new_user_character(&mut entity_gateway, "a1", "a").await;
|
|
|
let (user1, _char1) = new_user_character(&mut entity_gateway, "a1", "a").await;
|
|
@ -28,4 +28,4 @@ pub async fn test_save_options<EG: EntityGateway>(ship: &mut ShipServerState<EG> |
|
|
let char = characters[0].as_ref().unwrap();
|
|
|
let char = characters[0].as_ref().unwrap();
|
|
|
|
|
|
|
|
|
assert!(char.option_flags == 12345);
|
|
|
assert!(char.option_flags == 12345);
|
|
|
}
|
|
|
|
|
|
|
|
|
}
|