Skip to content

Commit

Permalink
fix units tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fredroy committed Dec 10, 2024
1 parent 02f6e58 commit 4338187
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sofa/Component/IO/Mesh/tests/STLExporter_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ class STLExporter_test : public BaseSimulationTest {
{
sofa::simpleapi::importPlugin("Sofa.Component.StateContainer");
sofa::simpleapi::importPlugin("Sofa.Component.Visual");
sofa::simpleapi::importPlugin("Sofa.Component.IO.Mesh");
}

void TearDown() override
Expand Down Expand Up @@ -98,7 +99,6 @@ class STLExporter_test : public BaseSimulationTest {
"<?xml version='1.0'?> \n"
"<Node name='Root' gravity='0 0 0' time='0' animate='0' > \n"
" <DefaultAnimationLoop/> \n"
" <RequiredPlugin name='Sofa.Component.IO.Mesh' /> \n"
" <MechanicalObject position='0 1 2 3 4 5 6 7 8 9'/> \n"
" <MeshOBJLoader name='loader' filename='mesh/liver-smooth.obj'/> \n"
" <VisualModel src='@loader'/> \n"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,12 @@ struct SceneChecker_test : public BaseSimulationTest
EXPECT_MSG_NOEMIT(Warning);

const std::string lvl = (shouldWarn)?"17.06":"17.12";


sofa::simpleapi::importPlugin("Sofa.Component.SceneUtility");

std::stringstream scene;
scene << "<?xml version='1.0'?> \n"
<< "<Node name='Root' gravity='0 -9.81 0' time='0' animate='0' > \n"
<< " <RequiredPlugin name='Sofa.Component.SceneUtility'/> \n"
<< " <APIVersion level='"<< lvl <<"'/> \n"
<< " <ComponentDeprecated /> \n"
<< "</Node> \n";
Expand Down

0 comments on commit 4338187

Please sign in to comment.