I have written the following code to get the first character of a string.
name.first!
It works fine when build and ran. But, the app crashes at this line on running the test cases.
Is it because of different build environment? Is there any other way to get this done, without the app being crashed?
Aucun commentaire:
Enregistrer un commentaire