summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-20 15:58:59 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-20 15:58:59 +0000
commit14a145095f2798fe97e19675dba14872aa14f029 (patch)
tree363352a31dd739c88f5793736cafc32bfc8aafa8 /test
parent6882b354604b8a28d7da5b457fd6ce4e1311a5be (diff)
fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_enum.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_enum.rb b/test/ruby/test_enum.rb
index d2403dd1a1..c87c60ac09 100644
--- a/test/ruby/test_enum.rb
+++ b/test/ruby/test_enum.rb
@@ -925,15 +925,15 @@ class TestEnumerable < Test::Unit::TestCase
def test_uniq
src = [1, 1, 1, 1, 2, 2, 3, 4, 5, 6]
assert_equal([1, 2, 3, 4, 5, 6], src.uniq.to_a)
- olimpics = {
+ olympics = {
1896 => 'Athens',
1900 => 'Paris',
- 1904 => 'Chikago',
+ 1904 => 'Chicago',
1906 => 'Athens',
1908 => 'Rome',
}
- assert_equal([[1896, "Athens"], [1900, "Paris"], [1904, "Chikago"], [1908, "Rome"]],
- olimpics.uniq{|k,v| v})
+ assert_equal([[1896, "Athens"], [1900, "Paris"], [1904, "Chicago"], [1908, "Rome"]],
+ olympics.uniq{|k,v| v})
assert_equal([1, 2, 3, 4, 5, 10], (1..100).uniq{|x| (x**2) % 10 }.first(6))
end
end