Created
May 17, 2020 06:16
-
-
Save sanjitk7/e50b08b0c9619700bf0d1922fb367c33 to your computer and use it in GitHub Desktop.
test method for camelCaseSplit
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