From 9628aee5856f4ce8f509d626e1456b928a61b022 Mon Sep 17 00:00:00 2001 From: Patrick Niklaus Date: Wed, 24 May 2017 22:52:17 +0000 Subject: [PATCH] Fix renumber unit tests for new order method --- unit_tests/partition/renumber.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/unit_tests/partition/renumber.cpp b/unit_tests/partition/renumber.cpp index 7944300e5ce..af780d9b7ff 100644 --- a/unit_tests/partition/renumber.cpp +++ b/unit_tests/partition/renumber.cpp @@ -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 l1{{0, 0, 1, 2, 3, 5, 5, 3, 4, 4, 1, 2}}; std::vector l2{{0, 0, 0, 1, 1, 3, 3, 1, 2, 2, 0, 1}}; std::vector l3{{0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1}}; @@ -76,7 +77,7 @@ BOOST_AUTO_TEST_CASE(unsplitable_case) std::vector 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()