1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

fix typos

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kazu 2016-07-20 15:58:59 +00:00
parent 6882b35460
commit 14a145095f
2 changed files with 6 additions and 4 deletions

View file

@ -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" \

View file

@ -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