Open pwochner opened 3 months ago
Make sure that empty strings are handled properly:
makeUppercase
makeLowercase
drop
moveRight
moveLeft
atEnd
isLetter
false
Make sure that empty strings are handled properly:
makeUppercase
,makeLowercase
,drop
are not meaningful on an empty string and we don't want to encourage programs to do that -> throw error.moveRight
,moveLeft
should return StringState unchanged.drop
, but then also be able to add characters to it again.atEnd
,isLetter
, etc.): Returnfalse
? Or error?