Skip to content

Commit

Permalink
added tests for 2ar - min and max and for a nondiaginal matrix value …
Browse files Browse the repository at this point in the history
…after pmax. All OK, so we found the bug in matrix and vector gaps::min
  • Loading branch information
favorov committed Dec 20, 2024
1 parent be8541f commit dc27053
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cpp_tests/testMatrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,11 @@ TEST_CASE("Test gap Matrix pmax","[matrix][matrixpmax]")
mat(i,i)=foam;
}
REQUIRE(minfoam == gaps::min(foam,minfoam));
REQUIRE(foam == gaps::max(foam,minfoam));
REQUIRE(minfoam == std::min(foam,minfoam));
REQUIRE(foam == std::max(foam,minfoam));
cpmat=gaps::pmax(mat,1,minfoam);
REQUIRE(minfoam == cpmat(0,1));
REQUIRE(minfoam == gaps::min(cpmat));
}
}

0 comments on commit dc27053

Please sign in to comment.