Test: Too long input
This commit is contained in:
@@ -113,4 +113,13 @@ mod tests {
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
#[should_panic(expected = "Input must have dimension of size 2x2)")]
|
||||||
|
fn test_parse_field_too_long_input() {
|
||||||
|
let input = "1 2 3 0 0 0 3 2 1";
|
||||||
|
let field_size = 2;
|
||||||
|
|
||||||
|
let _ = parse_playfield(&input.to_string(), field_size);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user