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

@@ -331,7 +331,7 @@ mod roundtrip_generated_code {
Some("foo"));
assert_eq!(mon.test_as_monster().unwrap().name(), Some("foo"));
assert_eq!(mon.test_as_test_simple_table_with_enum(), None);
assert_eq!(mon.test_as_my_game___example_2___monster(), None);
assert_eq!(mon.test_as_my_game_example_2_monster(), None);
}
#[test]
fn union_default() {