ulif / diceware

Passphrases to remember
GNU General Public License v3.0
354 stars 45 forks source link

Flexible separators, informative errors #75

Closed alanhoyle closed 4 years ago

alanhoyle commented 4 years ago

This does a few things:

This should address issue #74.

I have modified the original tests so that the new errors pass.

I did not introduce new tests. I suggest that the following strings could be test cases:

Accept:

1 2 3 4 5
1,2,3,4,5
,1,2,3,4,5,

Accept with warning:

1,2,3,4,5,6,

Reject (too short):

,1,2,
1,2,3,4,
11,2

Reject (value out of range):

11,2,3,4,5
1,22,3,4,5
alanhoyle commented 4 years ago

I really appreciate your patience with me on this. Thanks @ulif!

alanhoyle commented 4 years ago

I will start over from scratch and make a simpler version.