summaryrefslogtreecommitdiff
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
parent6882b354604b8a28d7da5b457fd6ce4e1311a5be (diff)
fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/unicode_normalize/tables.rb2
-rw-r--r--test/ruby/test_enum.rb8
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/unicode_normalize/tables.rb b/lib/unicode_normalize/tables.rb
index 707820318d..06d92714fe 100644
--- a/lib/unicode_normalize/tables.rb
+++ b/lib/unicode_normalize/tables.rb
@@ -4,6 +4,8 @@
# automatically generated by template/unicode_norm_gen.tmpl
module UnicodeNormalize
+ UNICODE_VERSION = "8.0.0"
+
accents = "" \
"[\u0300-\u034E\u0350-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7" \
"\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711" \
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