diff --git a/test/user/user_api_test.cc b/test/user/user_api_test.cc index 45554f90..dadaaa65 100644 --- a/test/user/user_api_test.cc +++ b/test/user/user_api_test.cc @@ -36,7 +36,7 @@ using ::testing::HasSubstr; using ::testing::NotNull; -// ----------------------------- test set/get -------------------------------- +// ----------------------------- test set/get --------------------------------- TEST_F(MujocoTest, ReadWriteData) { mjSpec* spec = mjs_createSpec(); @@ -63,7 +63,7 @@ TEST_F(MujocoTest, ReadWriteData) { mjs_deleteSpec(spec); } -// ------------------- test recompilation multiple files ---------------------- +// ------------------- test recompilation multiple files ----------------------- TEST_F(PluginTest, RecompileCompare) { mjtNum tol = 0; std::string field = ""; @@ -195,15 +195,21 @@ TEST_F(PluginTest, RecompileCompareCache) { mj_deleteVFS(vfs.get()); } -// -------------------------------- test attach ------------------------------- +// -------------------------------- test attach -------------------------------- static constexpr char xml_child[] = R"( + + + + + + - + @@ -213,19 +219,23 @@ static constexpr char xml_child[] = R"( + + + + @@ -238,10 +248,16 @@ TEST_F(MujocoTest, AttachSame) { static constexpr char xml_result[] = R"( + + + + + + - + @@ -250,18 +266,20 @@ TEST_F(MujocoTest, AttachSame) { - + + + @@ -270,12 +288,14 @@ TEST_F(MujocoTest, AttachSame) { + + @@ -328,10 +348,16 @@ TEST_F(MujocoTest, AttachDifferent) { static constexpr char xml_parent[] = R"( + + + + + + - + @@ -339,14 +365,23 @@ TEST_F(MujocoTest, AttachDifferent) { static constexpr char xml_result[] = R"( + + + + + + + + + - + - + @@ -354,18 +389,22 @@ TEST_F(MujocoTest, AttachDifferent) { + + + + @@ -433,6 +472,12 @@ TEST_F(MujocoTest, AttachFrame) { static constexpr char xml_result[] = R"( + + + + + + @@ -442,7 +487,7 @@ TEST_F(MujocoTest, AttachFrame) { - + @@ -451,18 +496,22 @@ TEST_F(MujocoTest, AttachFrame) { + + + +