Skip to content

Commit

Permalink
fix style for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Caha committed Nov 28, 2023
1 parent f1c3797 commit 9721b8e
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions tests/test_mike21.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,17 +103,17 @@ TEST( MeshMike21Test, ReadSmallMesh )
EXPECT_STREQ( MDAL_G_name( MDAL_M_datasetGroup( m, 0 ) ), "VertexType" );
EXPECT_STREQ( MDAL_G_name( MDAL_M_datasetGroup( m, 1 ) ), "Bed Elevation" );

for (int i = 0; i < f_count; i++)
for ( int i = 0; i < f_count; i++ )
{
size_t faceVertexCount = getFaceVerticesCountAt( m, i);
size_t faceVertexCount = getFaceVerticesCountAt( m, i );
// faces at 0, 5, 6, 7 are quads, other are triangles
if (i == 0 || i == 5 || i == 6 || i == 7)
if ( i == 0 || i == 5 || i == 6 || i == 7 )
{
EXPECT_EQ(4, faceVertexCount);
EXPECT_EQ( 4, faceVertexCount );
}
else
{
EXPECT_EQ(3, faceVertexCount);
EXPECT_EQ( 3, faceVertexCount );
}
}
}
Expand Down Expand Up @@ -142,17 +142,17 @@ TEST( MeshMike21Test, ReadOdenseRoughQuads )
EXPECT_STREQ( MDAL_G_name( MDAL_M_datasetGroup( m, 0 ) ), "VertexType" );
EXPECT_STREQ( MDAL_G_name( MDAL_M_datasetGroup( m, 1 ) ), "Bed Elevation" );

for (int i = 0; i < f_count; i++)
for ( int i = 0; i < f_count; i++ )
{
size_t faceVertexCount = getFaceVerticesCountAt( m, i);
size_t faceVertexCount = getFaceVerticesCountAt( m, i );
// all faces with id below 513 are triangles, all later are quads
if (i < 513)
if ( i < 513 )
{
EXPECT_EQ(3, faceVertexCount);
EXPECT_EQ( 3, faceVertexCount );
}
else
{
EXPECT_EQ(4, faceVertexCount);
EXPECT_EQ( 4, faceVertexCount );
}
}
}
Expand Down Expand Up @@ -181,10 +181,10 @@ TEST( MeshMike21Test, ReadOdenseRough )
EXPECT_STREQ( MDAL_G_name( MDAL_M_datasetGroup( m, 0 ) ), "VertexType" );
EXPECT_STREQ( MDAL_G_name( MDAL_M_datasetGroup( m, 1 ) ), "Bed Elevation" );

for (int i = 0; i < f_count; i++)
for ( int i = 0; i < f_count; i++ )
{
size_t faceVertexCount = getFaceVerticesCountAt( m, i);
EXPECT_EQ(3, faceVertexCount);
size_t faceVertexCount = getFaceVerticesCountAt( m, i );
EXPECT_EQ( 3, faceVertexCount );
}
}

Expand Down

0 comments on commit 9721b8e

Please sign in to comment.