Skip to content

Commit

Permalink
lab01, fixed indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
matteo committed Jun 20, 2022
1 parent 56752db commit cebcb52
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions labs/lab-01/source/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
using namespace dealii;


int main(int argc, char *argv[])
int
main(int argc, char *argv[])
{
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
6 changes: 3 additions & 3 deletions labs/lab-01/source/point_tests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ TEST(Pythagoras, ScalarProduct2D)

TEST(Pythagoras, Norm3D)
{
Point<3> x(3, 4, 0);
ASSERT_DOUBLE_EQ(x.norm(), 5);
Point<3> x(3, 4, 0);
ASSERT_DOUBLE_EQ(x.norm(), 5);
}

TEST(Pythagoras, Distance3D)
{
Point<3> x(4, 5, 1);
Point<3> y(1, 1, 1);
ASSERT_DOUBLE_EQ(x.distance(y), 5);
ASSERT_DOUBLE_EQ(x.distance(y), 5);
}

TEST(Pythagoras, ScalarProduct3D)
Expand Down

0 comments on commit cebcb52

Please sign in to comment.