Merge branch 'parser2' into 'master'
fix break See merge request mhart/DancingDroids!38
This commit is contained in:
commit
c7f0a0a281
@ -173,7 +173,7 @@ fn parse_config(conf: String, pool: &mut Vec<robot::Robot>) -> Result<world::Wor
|
||||
|
||||
// Convert instructions line.
|
||||
let inst: Vec<char> = raw_inst.chars().collect();
|
||||
if !world::is_instructions(&inst) {
|
||||
if !robot::is_instructions(&inst) {
|
||||
return Err(String::from("Invalid instructions !"));
|
||||
}
|
||||
|
||||
@ -228,7 +228,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn test_check_map() {
|
||||
let mut r = robot::Robot::new(
|
||||
let r = robot::Robot::new(
|
||||
0,
|
||||
robot::Orientation::N,
|
||||
robot::Position { x: 2, y: 3 },
|
||||
@ -242,7 +242,7 @@ mod tests {
|
||||
#[test]
|
||||
#[should_panic]
|
||||
fn test_check_map_fail() {
|
||||
let mut r = robot::Robot::new(
|
||||
let r = robot::Robot::new(
|
||||
0,
|
||||
robot::Orientation::N,
|
||||
robot::Position { x: 2, y: 4 },
|
||||
@ -256,7 +256,7 @@ mod tests {
|
||||
#[test]
|
||||
#[should_panic]
|
||||
fn test_check_collisions() {
|
||||
let mut r = robot::Robot::new(
|
||||
let r = robot::Robot::new(
|
||||
0,
|
||||
robot::Orientation::N,
|
||||
robot::Position { x: 2, y: 3 },
|
||||
|
Loading…
Reference in New Issue
Block a user