Last active
May 16, 2020 17:53
-
-
Save sanjitk7/dca4101371c78c289e567681475caa27 to your computer and use it in GitHub Desktop.
split camel case
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test_camelCaseSplit(self): | |
self.assertEqual(camelCaseSplit("theDarkKnightRises"),["the","Dark","Knight","Rises"]) | |
self.assertEqual(camelCaseSplit("helloW"),["hello","W"]) | |
self.assertEqual(camelCaseSplit("helloIWorld"),["hello","I","World"]) | |
with self.assertRaises(TypeError): | |
camelCaseSplit(1234) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment