-
Notifications
You must be signed in to change notification settings - Fork 204
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
issue #443: quote Y and N when dumping #641
Conversation
test/psych/test_string.rb
Outdated
end | ||
|
||
def test_n_is_quoted | ||
assert_match(/"n"/, Psych.dump("n")) | ||
assert_match(/"N"/, Psych.dump("N")) | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tenderlove The test below encompasses these 2 special cases, so I'd be happy to drop these 2 if you're good with it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the test you have below seems good enough
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, I dropped the 2 special tests, but left the comment (updated for uppercase): 6750b35
…in the more general test
@tenderlove Anything else needed before merging this PR? |
@tenderlove Just checking in here. Anything else needed before merging this PR? |
1 similar comment
@tenderlove Just checking in here. Anything else needed before merging this PR? |
Building on #515, this has the uppercase fixes as well for #443.