summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 707820318d6..06d92714fe8 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 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