Ad
  • Custom User Avatar

    In fully half of the cases, the random tests expect the entire string quoted back because max >= string.length.

    Bit of a waste of tests. Better to have max < string.length more often.

  • Custom User Avatar

    From the random tests:

    input: "uWTewfsYWwphJndJxzDn YsXiWHWotwqbRT!VGOIzydmQh.oMfIHuWR..", max = 54
    Expected: 'uWTewfsYWwphJndJxzDn...', instead got: 'uWTewfsYWwphJndJxzDn YsXiWHWotwqbRT!VGOIzydmQh...'
    

    Does punctuation not separate words?