Closed slowbro closed 5 years ago
re: coveralls, that looks like lines from a previous commit - I did not change those files.
Thank you for looking into this! I took a bit of break from open source but I'm back :)
Would you have time to add test case for this behaviour so I don't break it in future?
Welcome back! I pushed some tests :)
Thank you! ❤️ Tests will ensure longevity😄
Describe the change
Fixes #106 by adding a default validator and message:
Also, overrides Question's
process_input
to insert the defaultpositive
ornegative
string on blank input.Why are we doing this?
Fixes unhandled exceptions in yes?/no? when a user inputs unexpected text:
vs
Benefits
Fixes a couple unhandled exceptions.
Drawbacks
I stopped using Necromancer's
:bool
conversion for this - it seemed unnecessary, given the already existentconversion
function plus the validation. Feel free to override me there :)Requirements
Put an X between brackets on each line if you have done the item: [x] Tests written & passing locally? [x] Code style checked? [x] Rebased with
master
branch? [x] Documentation updated?