Skip to content

Commit

Permalink
Fix renumber unit tests for new order method
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMarex committed May 24, 2017
1 parent 5999e36 commit 9628aee
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions unit_tests/partition/renumber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ BOOST_AUTO_TEST_CASE(unsplitable_case)
// permutation by cells: 0 1 2 5 6 10 11 7 8 9 3 4
// order by cell: 0 1 2 10 11 3 4 7 8 9 5 6
// x x x x x x x
// order: 0 10 3 11 4 7 6 1 2 8 9 5
// permutation: 0 7 8 2 4 11 6 5 9 10 1 3
// border level: 3 3 3 2 2 1 1 0 0 0 0 0
// order: 0 10 11 7 6 3 4 1 2 8 9 5
// permutation: 0 7 8 5 6 11 4 3 9 10 1 2
std::vector<CellID> l1{{0, 0, 1, 2, 3, 5, 5, 3, 4, 4, 1, 2}};
std::vector<CellID> l2{{0, 0, 0, 1, 1, 3, 3, 1, 2, 2, 0, 1}};
std::vector<CellID> l3{{0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1}};
Expand Down Expand Up @@ -76,7 +77,7 @@ BOOST_AUTO_TEST_CASE(unsplitable_case)
std::vector<Partition> partitions {l1, l2, l3, l4};

auto permutation = makePermutation(graph, partitions);
CHECK_EQUAL_RANGE(permutation, 0, 7, 8, 2, 4, 11, 6, 5, 9, 10, 1,3);
CHECK_EQUAL_RANGE(permutation, 0, 7, 8, 5, 6, 11, 4, 3, 9, 10, 1, 2);
}

BOOST_AUTO_TEST_SUITE_END()

0 comments on commit 9628aee

Please sign in to comment.