Returning result with only 1 character to choose from#14
Returning result with only 1 character to choose from#14flip111 wants to merge 1 commit intoircmaxell:masterfrom
Conversation
When string length > 1 (5) and only one character ('a') has been given the correct return value should be a string with only that character ('aaaaa'). Ok sure there is nothing random about that, but that's more likely a case to throw a logic exception or something similar.
|
@ircmaxell What do you think of this one? I see in the tests you specifically have |
|
It's an invalid input. I don't think that |
|
I'm of the mindset of some sort of exception might make more sense in both the case of Having the possibility to pass back Personally, if we say that it "makes sense" that you can ask for a zero length random string and to get |
When string length > 1 (5) and only one character ('a') has been given the correct return value should be a string with only that character ('aaaaa'). Ok sure there is nothing random about that, but that's more likely a case to throw a logic exception or something similar.