Test: Too long input

This commit is contained in:
Jonas Zeunert
2024-02-18 15:54:08 +01:00
parent b15736496b
commit 2eb0925f1d

View File

@@ -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);
}
} }