Skip to content

Commit

Permalink
test: the buffer3d type name should be uppercase
Browse files Browse the repository at this point in the history
The expected filenames use the buffer3d type name (ROUND, CYLSPHERE, FLAT), which are uppercased. We use lowercased strings in the unit test, hence the expected buffer files are not found, and the test are skipped.

This commit uppercases the type names so as to exploit the expected data.
  • Loading branch information
delhomer authored and lbartoletti committed Oct 17, 2024
1 parent f7c31f0 commit 809a4a3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/unit/SFCGAL/algorithm/Buffer3DTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ BOOST_AUTO_TEST_CASE(testBuffer3D_Point)
std::string typeName;
switch (bufferType) {
case algorithm::Buffer3D::ROUND:
typeName = "round";
typeName = "ROUND";
break;
case algorithm::Buffer3D::CYLSPHERE:
typeName = "cylsphere";
typeName = "CYLSPHERE";
break;
case algorithm::Buffer3D::FLAT:
typeName = "flat";
typeName = "FLAT";
break;
}

Expand Down Expand Up @@ -163,13 +163,13 @@ BOOST_AUTO_TEST_CASE(testBuffer3D_LineString)
std::string typeName;
switch (bufferType) {
case algorithm::Buffer3D::ROUND:
typeName = "round";
typeName = "ROUND";
break;
case algorithm::Buffer3D::CYLSPHERE:
typeName = "cylsphere";
typeName = "CYLSPHERE";
break;
case algorithm::Buffer3D::FLAT:
typeName = "flat";
typeName = "FLAT";
break;
}

Expand Down

0 comments on commit 809a4a3

Please sign in to comment.