Ad
  • Custom User Avatar

    Inconsistent use of newlines and spaces:

    Example #1: I return the words properly capitalized, but you expect newlines to be replaced with spaces:

    input: 'One fish\nTwo fish\nRed fish\nBlue fish.'
    
    Failed to capitalize words: 'One Fish\nTwo Fish\nRed Fish\nBlue Fish.' should equal 'One Fish Two Fish Red Fish Blue Fish.'
    

    Example #2: however, when dealing with sentences you don't want newlines replaced:

    input: 'This one has a little star.\nThis one has a little car.'
    
    Failed to capitalize sentences: 'This one has a little star. This one has a little car.' should equal 'This one has a little star.\nThis one has a little car.'