Give the test fixture a local name in elasticity_test.
PiperOrigin-RevId: 571900967 Change-Id: Ie9bfea00dff1f9068f7fb3bf426dcbf6bfd6b4d2
This commit is contained in:
committed by
Copybara-Service
parent
f0608648cb
commit
cd06629a92
@@ -28,9 +28,10 @@
|
|||||||
namespace mujoco {
|
namespace mujoco {
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
using ElasticityTest = PluginTest;
|
||||||
|
|
||||||
// -------------------------------- shell -----------------------------------
|
// -------------------------------- shell -----------------------------------
|
||||||
TEST_F(PluginTest, ElasticEnergyShell) {
|
TEST_F(ElasticityTest, ElasticEnergyShell) {
|
||||||
static constexpr char cantilever_xml[] = R"(
|
static constexpr char cantilever_xml[] = R"(
|
||||||
<mujoco>
|
<mujoco>
|
||||||
<extension>
|
<extension>
|
||||||
@@ -84,7 +85,7 @@ TEST_F(PluginTest, ElasticEnergyShell) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------- solid -----------------------------------
|
// -------------------------------- solid -----------------------------------
|
||||||
TEST_F(PluginTest, ElasticEnergySolid) {
|
TEST_F(ElasticityTest, ElasticEnergySolid) {
|
||||||
static constexpr char cantilever_xml[] = R"(
|
static constexpr char cantilever_xml[] = R"(
|
||||||
<mujoco>
|
<mujoco>
|
||||||
<extension>
|
<extension>
|
||||||
@@ -136,7 +137,7 @@ TEST_F(PluginTest, ElasticEnergySolid) {
|
|||||||
|
|
||||||
// -------------------------------- cable -----------------------------------
|
// -------------------------------- cable -----------------------------------
|
||||||
|
|
||||||
TEST_F(PluginTest, CantileverIntoCircle) {
|
TEST_F(ElasticityTest, CantileverIntoCircle) {
|
||||||
static constexpr char cantilever_xml[] = R"(
|
static constexpr char cantilever_xml[] = R"(
|
||||||
<mujoco>
|
<mujoco>
|
||||||
<option gravity="0 0 0"/>
|
<option gravity="0 0 0"/>
|
||||||
@@ -190,7 +191,7 @@ TEST_F(PluginTest, CantileverIntoCircle) {
|
|||||||
mj_deleteModel(m);
|
mj_deleteModel(m);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F(PluginTest, InvalidTxtAttribute) {
|
TEST_F(ElasticityTest, InvalidTxtAttribute) {
|
||||||
static constexpr char cantilever_xml[] = R"(
|
static constexpr char cantilever_xml[] = R"(
|
||||||
<mujoco>
|
<mujoco>
|
||||||
<extension>
|
<extension>
|
||||||
@@ -213,7 +214,7 @@ TEST_F(PluginTest, InvalidTxtAttribute) {
|
|||||||
ASSERT_THAT(m, testing::IsNull());
|
ASSERT_THAT(m, testing::IsNull());
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F(PluginTest, InvalidMixedAttribute) {
|
TEST_F(ElasticityTest, InvalidMixedAttribute) {
|
||||||
static constexpr char cantilever_xml[] = R"(
|
static constexpr char cantilever_xml[] = R"(
|
||||||
<mujoco>
|
<mujoco>
|
||||||
<extension>
|
<extension>
|
||||||
@@ -236,7 +237,7 @@ TEST_F(PluginTest, InvalidMixedAttribute) {
|
|||||||
ASSERT_THAT(m, testing::IsNull());
|
ASSERT_THAT(m, testing::IsNull());
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F(PluginTest, ValidAttributes) {
|
TEST_F(ElasticityTest, ValidAttributes) {
|
||||||
static constexpr char cantilever_xml[] = R"(
|
static constexpr char cantilever_xml[] = R"(
|
||||||
<mujoco>
|
<mujoco>
|
||||||
<extension>
|
<extension>
|
||||||
|
|||||||
Reference in New Issue
Block a user