Better parsing for GMSH2.2

PiperOrigin-RevId: 625267106
Change-Id: Iecf767c43cee1067fdab3859df28050f8a365e2b
This commit is contained in:
Google DeepMind
2024-04-16 03:22:44 -07:00
committed by Copybara-Service
parent 0cd28d2423
commit f086dc9b4b
3 changed files with 99 additions and 28 deletions
+1 -1
View File
@@ -383,7 +383,7 @@ TEST_F(UserFlexTest, LoadMSHASCII_22_MissingNumElements_Fail) {
"user/testdata/malformed_shark_22_ascii_missing_num_elements.xml");
std::array<char, 1024> error;
mjModel* m = mj_loadXML(xml_path.c_str(), 0, error.data(), error.size());
EXPECT_THAT(error.data(), HasSubstr("XML Error: Error: Invalid node tag"));
EXPECT_THAT(error.data(), HasSubstr("XML Error: Error: Invalid elements header"));
mj_deleteModel(m);
}