Skip to content

Commit

Permalink
added get_width and height tests for matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dpbm committed Jun 24, 2024
1 parent a6f4ccf commit 6f27a4b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/matrix_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ using Matrices::Matrix;
using std::invalid_argument;

namespace {
TEST(ValueTest, WidthTest){
Matrix m{3};
ASSERT_EQ(m.get_width(), 3);
}

TEST(ValueTest, HeightTest){
Matrix m{5};
ASSERT_EQ(m.get_height(), 5);
}

TEST(CreationTest, SquareMatrixTest){
Matrix* matrix = new Matrix(3);
matrix->update_value(0, 0, 1);
Expand Down

0 comments on commit 6f27a4b

Please sign in to comment.