Skip to content

Commit

Permalink
Reinstated commented out test in bmat8
Browse files Browse the repository at this point in the history
  • Loading branch information
hivert committed Oct 27, 2023
1 parent d59bf8f commit 62a38dd
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions tests/test_bmat8.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -517,37 +517,37 @@ TEST_CASE_METHOD(BMat8Fixture, "BMat8::nr_rows", "[BMat8][025]") {
REQUIRE(BMat8({{1, 0, 1}, {1, 1, 0}, {0, 0, 0}}).nr_rows() == 2);
}

// TEST_CASE("BMat8::right_perm_action_on_basis_ref", "[BMat8][026]") {
// BMat8 m1({{1, 1, 0}, {1, 0, 1}, {0, 0, 0}});
// BMat8 m2({{0, 0, 0}, {1, 0, 1}, {1, 1, 0}});
// REQUIRE(m1.right_perm_action_on_basis_ref(m2) == Perm16({1,0}));
// REQUIRE(m1.right_perm_action_on_basis(m2) == Perm16({1,0}));
//
// m1 = BMat8({{1, 1, 0, 1}, {1, 0, 1, 0}, {0, 0, 0, 1}, {0, 0, 0, 0}});
// m2 = BMat8({{1, 0, 0, 0}, {0, 1, 0, 1}, {1, 0, 1, 0}, {0, 0, 0, 1}});
// REQUIRE(m1.right_perm_action_on_basis_ref(m2) == Perm16::one());
// REQUIRE(m1.right_perm_action_on_basis(m2) == Perm16::one());
//
// m1 = BMat8({{1, 1, 0, 1}, {1, 0, 1, 0}, {0, 0, 0, 1}, {0, 0, 0, 0}});
// m2 = BMat8({{0, 0, 0, 0}, {1, 1, 0, 1}, {1, 0, 1, 0}, {0, 0, 0, 1}});
// REQUIRE(m1.right_perm_action_on_basis_ref(m2) == Perm16::one());
// REQUIRE(m1.right_perm_action_on_basis(m2) == Perm16::one());
//
// m1 = BMat8({{0,1,0,0}, {0,0,1,0}, {1,0,0,1}, {0,0,0,0}});
// m2 = BMat8({{1,0,0,1}, {0,0,1,0}, {0,1,0,0}, {0,0,0,1}});
// REQUIRE(m1.right_perm_action_on_basis_ref(m2) == Perm16({1,0}));
// REQUIRE(m1.right_perm_action_on_basis(m2) == Perm16({1,0}));
//
// m1 = BMat8({{0,0,0,1}, {1,0,0,0}, {0,0,1,0}, {0,1,0,0}});
// m2 = BMat8({{0,1,0,0}, {0,0,1,0}, {1,0,0,0}, {0,0,0,1}});
// REQUIRE(m1.right_perm_action_on_basis_ref(m2) == Perm16({0,2,3,1}));
// REQUIRE(m1.right_perm_action_on_basis(m2) == Perm16({0,2,3,1}));
//
//
// m1 = BMat8({{0,0,0,1}, {0,0,1,0}, {0,1,0,0}, {1,0,0,0}});
// m2 = BMat8({{0,1,0,0}, {0,0,0,1}, {1,0,0,0}, {0,0,1,0}});
// REQUIRE(m1.right_perm_action_on_basis_ref(m2) == Perm16({2,0,3,1}));
// REQUIRE(m1.right_perm_action_on_basis(m2) == Perm16({2,0,3,1}));
// }
TEST_CASE("BMat8::right_perm_action_on_basis_ref", "[BMat8][026]") {
BMat8 m1({{1, 1, 0}, {1, 0, 1}, {0, 0, 0}});
BMat8 m2({{0, 0, 0}, {1, 0, 1}, {1, 1, 0}});
REQUIRE(m1.right_perm_action_on_basis_ref(m2) == Perm16({1,0}));
REQUIRE(m1.right_perm_action_on_basis(m2) == Perm16({1,0}));

m1 = BMat8({{1, 1, 0, 1}, {1, 0, 1, 0}, {0, 0, 0, 1}, {0, 0, 0, 0}});
m2 = BMat8({{1, 0, 0, 0}, {0, 1, 0, 1}, {1, 0, 1, 0}, {0, 0, 0, 1}});
REQUIRE(m1.right_perm_action_on_basis_ref(m2) == Perm16::one());
REQUIRE(m1.right_perm_action_on_basis(m2) == Perm16::one());

m1 = BMat8({{1, 1, 0, 1}, {1, 0, 1, 0}, {0, 0, 0, 1}, {0, 0, 0, 0}});
m2 = BMat8({{0, 0, 0, 0}, {1, 1, 0, 1}, {1, 0, 1, 0}, {0, 0, 0, 1}});
REQUIRE(m1.right_perm_action_on_basis_ref(m2) == Perm16::one());
REQUIRE(m1.right_perm_action_on_basis(m2) == Perm16::one());

m1 = BMat8({{0,1,0,0}, {0,0,1,0}, {1,0,0,1}, {0,0,0,0}});
m2 = BMat8({{1,0,0,1}, {0,0,1,0}, {0,1,0,0}, {0,0,0,1}});
REQUIRE(m1.right_perm_action_on_basis_ref(m2) == Perm16({1,0}));
REQUIRE(m1.right_perm_action_on_basis(m2) == Perm16({1,0}));

m1 = BMat8({{0,0,0,1}, {1,0,0,0}, {0,0,1,0}, {0,1,0,0}});
m2 = BMat8({{0,1,0,0}, {0,0,1,0}, {1,0,0,0}, {0,0,0,1}});
REQUIRE(m1.right_perm_action_on_basis_ref(m2) == Perm16({0,2,3,1}));
REQUIRE(m1.right_perm_action_on_basis(m2) == Perm16({0,2,3,1}));


m1 = BMat8({{0,0,0,1}, {0,0,1,0}, {0,1,0,0}, {1,0,0,0}});
m2 = BMat8({{0,1,0,0}, {0,0,0,1}, {1,0,0,0}, {0,0,1,0}});
REQUIRE(m1.right_perm_action_on_basis_ref(m2) == Perm16({2,0,3,1}));
REQUIRE(m1.right_perm_action_on_basis(m2) == Perm16({2,0,3,1}));
}

} // namespace HPCombi

0 comments on commit 62a38dd

Please sign in to comment.