titleCase("I'm a little tea pot")
should return a string.
testString: assert(typeof titleCase("I'm a little tea pot") === "string", 'titleCase("I'm a little tea pot")
should return a string.');
- text: titleCase("I'm a little tea pot")
should return I'm A Little Tea Pot
.
testString: assert(titleCase("I'm a little tea pot") === "I'm A Little Tea Pot", 'titleCase("I'm a little tea pot")
should return I'm A Little Tea Pot
.');
- text: titleCase("sHoRt AnD sToUt")
should return Short And Stout
.
testString: assert(titleCase("sHoRt AnD sToUt") === "Short And Stout", 'titleCase("sHoRt AnD sToUt")
should return Short And Stout
.');
- text: titleCase("HERE IS MY HANDLE HERE IS MY SPOUT")
should return Here Is My Handle Here Is My Spout
.
testString: assert(titleCase("HERE IS MY HANDLE HERE IS MY SPOUT") === "Here Is My Handle Here Is My Spout", 'titleCase("HERE IS MY HANDLE HERE IS MY SPOUT")
should return Here Is My Handle Here Is My Spout
.');
```