mirror of
https://github.com/edgecase/ruby_koans.git
synced 2026-04-15 07:23:19 -04:00
Using the term 'modern ruby'
This commit is contained in:
@@ -151,7 +151,7 @@ EOS
|
|||||||
end
|
end
|
||||||
|
|
||||||
in_ruby_version("1.8") do
|
in_ruby_version("1.8") do
|
||||||
def test_in_ruby_1_8_single_characters_are_represented_by_integers
|
def test_in_older_ruby_single_characters_are_represented_by_integers
|
||||||
assert_equal __(97, 'a'), ?a
|
assert_equal __(97, 'a'), ?a
|
||||||
assert_equal __(true, false), ?a == 97
|
assert_equal __(true, false), ?a == 97
|
||||||
|
|
||||||
@@ -160,7 +160,7 @@ EOS
|
|||||||
end
|
end
|
||||||
|
|
||||||
in_ruby_version("1.9", "2") do
|
in_ruby_version("1.9", "2") do
|
||||||
def test_in_ruby_1_9_and_2_single_characters_are_represented_by_strings
|
def test_in_modern_ruby_single_characters_are_represented_by_strings
|
||||||
assert_equal __('a'), ?a
|
assert_equal __('a'), ?a
|
||||||
assert_equal __(false), ?a == 97
|
assert_equal __(false), ?a == 97
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user