rust: Fixed MakeCamelCase (#4932) (#4936)

* Fixed MakeCamelCase behavior when supplied Upper_Camel_Case,
snake_case and UPPERCASE strings.
* Modified the rust integration test to reflect changes.
This commit is contained in:
jean-airoldie
2018-09-26 16:35:02 -04:00
committed by Robert
parent 49fed8c4f6
commit c56fff88a2
4 changed files with 18 additions and 12 deletions

View File

@@ -1110,7 +1110,7 @@ impl<'a> Monster<'a> {
#[inline]
#[allow(non_snake_case)]
pub fn test_as_my_game___example_2___monster(&'a self) -> Option<super::example_2::Monster> {
pub fn test_as_my_game_example_2_monster(&'a self) -> Option<super::example_2::Monster> {
if self.test_type() == Any::MyGame_Example2_Monster {
self.test().map(|u| super::example_2::Monster::init_from_table(u))
} else {