Update about_strings.rb
Update single character representation test for Ruby 2.
This commit is contained in:
@@ -159,8 +159,8 @@ EOS
|
||||
end
|
||||
end
|
||||
|
||||
in_ruby_version("1.9") do
|
||||
def test_in_ruby_1_9_single_characters_are_represented_by_strings
|
||||
in_ruby_version("1.9", "2") do
|
||||
def test_in_ruby_1_9_and_2_single_characters_are_represented_by_strings
|
||||
assert_equal __('a'), ?a
|
||||
assert_equal __(false), ?a == 97
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user