Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permit coBool options to be set with booleans #4668

Merged
merged 1 commit into from
Jan 2, 2019
Merged

Conversation

lordofhyphens
Copy link
Member

coBool options weren't permitted to be set with boolean values; the only valid setter was via string "1" and "0", which is very inconvenient (and wasn't intended on the initial PR).

Additionally, booleans being set with a string are a special kind of enumeration and should be treated as such. Our configs emit "1" and "0" and should not accept "Z" or anything like that (which they were and treating as false).

Tests have been fixed/expanded.

…pe enforcement for setting it with a string (only accepts "1" and "0").
@lordofhyphens lordofhyphens requested a review from alranel as a code owner January 2, 2019 01:42
@lordofhyphens lordofhyphens self-assigned this Jan 2, 2019
@lordofhyphens lordofhyphens merged commit 190de64 into master Jan 2, 2019
@AppVeyorBot
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants