Fix feature names with special characters. (#9923)

This commit is contained in:
Jiaming Yuan
2023-12-28 22:45:13 +08:00
committed by GitHub
parent a197899161
commit a7226c0222
4 changed files with 88 additions and 68 deletions

View File

@@ -404,7 +404,7 @@ TEST(Tree, DumpText) {
}
ASSERT_EQ(n_conditions, 3ul);
ASSERT_NE(str.find("[f0<0]"), std::string::npos);
ASSERT_NE(str.find("[f0<0]"), std::string::npos) << str;
ASSERT_NE(str.find("[f1<1]"), std::string::npos);
ASSERT_NE(str.find("[f2<2]"), std::string::npos);