Browse Source

add a test

pbs
andy 4 years ago
parent
commit
046ca492a8
  1. 4
      tests/test_character.rs

4
tests/test_character.rs

@ -9,7 +9,7 @@ mod common;
use common::*;
#[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 (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();
assert!(char.option_flags == 12345);
}
}
Loading…
Cancel
Save