void () { assertEquals("foo", PyNameSuggestionProvider.toUnderscores("foo")); assertEquals("foo", PyNameSuggestionProvider.toUnderscores("Foo")); assertEquals("foo", PyNameSuggestionProvider.toUnderscores("FOO")); assertEquals("foo_bar", PyNameSuggestionProvider.toUnderscores("FooBar")); assertEquals("foo_bar", PyNameSuggestionProvider.toUnderscores("foo_bar")); assertEquals("foo_bar", PyNameSuggestionProvider.toUnderscores("FOO_BAR")); assertEquals("__foo_bar", PyNameSuggestionProvider.toUnderscores("__Foo_Bar")); assertEquals("foo42bar", PyNameSuggestionProvider.toUnderscores("foo42bar")); assertEquals("foo42_bar", PyNameSuggestionProvider.toUnderscores("foo42Bar")); assertEquals("foo42_bar", PyNameSuggestionProvider.toUnderscores("FOO42BAR")); assertEquals("foo_bar", PyNameSuggestionProvider.toUnderscores("FOOBar")); assertEquals("foo_bar_baz", PyNameSuggestionProvider.toUnderscores("foo_BarBAZ")); }