use crate::utils; use approx::assert_relative_eq; use common::{ comp::{self, CommandGenerator, Controller, InputKind}, resources::Time, }; use specs::WorldExt; use std::{error::Error, time::Duration}; use utils::{DT, DTT}; use vek::{approx, Vec2}; use veloren_common_systems::add_local_systems; #[test] fn simple_run() { let mut state = utils::setup(); utils::create_player(&mut state); state.tick( DT, |dispatcher_builder| { add_local_systems(dispatcher_builder); }, false, ); } #[test] fn emulate_walk() -> Result<(), Box> { let mut state = utils::setup(); let p1 = utils::create_player(&mut state); utils::tick(&mut state, DT); assert_eq!(state.ecs_mut().read_resource::