summaryrefslogtreecommitdiff
path: root/test/ruby/test_enum.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_enum.rb')
-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 d2403dd1a1e..c87c60ac09c 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