Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
Add (and ignore) a failing test case for mix sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
mwillsey committed Oct 1, 2018
1 parent 2ea3331 commit 23796a4
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/core/tests/simple_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,26 @@ fn mix_dimensions_size() {
);
}

#[test]
#[ignore]
fn mix_dimensions_too_large_to_combine() {
// recall, this is on 20x20 board

// too tall to fit vertically
check_mix_dimensions(
Location { y: 11, x: 3 },
Location { y: 11, x: 3 },
Location { y: 11, x: 6 },
);

// too wide to fit horizontally
check_mix_dimensions(
Location { y: 3, x: 11 },
Location { y: 3, x: 11 },
Location { y: 6, x: 11 },
);
}

fn check_split_dimensions(dim: Location, dim1: Location, dim2: Location) {
let man = manager_from_rect(9, 9);
let p = man.get_new_process("test");
Expand Down

0 comments on commit 23796a4

Please sign in to comment.